in reply to Re: How to avoid decoding string to utf-8.
in thread How to avoid decoding string to utf-8.
please note that this seems case of mixed encoding.
I have below two string,
Problem here is, decode works fine for me with second string but with it First string gets double decoded and convert in to some black diamond with question marks symbols.1. àáâä #This one doesn't need any extra processing 2. à áâä #This one needs to decode .i.e decode('utf-8',$str) which + gives correct result as àáâä
so is there any way that we can differentiate these two strings and apply decode accordingly.
I hope this time, issue is more clear.
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to avoid decoding string to utf-8.
by ikegami (Patriarch) on Oct 11, 2020 at 20:51 UTC | |
|
Re^3: How to avoid decoding string to utf-8.
by haj (Vicar) on Oct 11, 2020 at 17:43 UTC | |
by Anonymous Monk on Oct 12, 2020 at 09:03 UTC | |
by Corion (Patriarch) on Oct 12, 2020 at 09:19 UTC | |
by Anonymous Monk on Oct 12, 2020 at 09:32 UTC | |
by Corion (Patriarch) on Oct 12, 2020 at 09:35 UTC | |
by haj (Vicar) on Oct 12, 2020 at 09:54 UTC | |
by Anonymous Monk on Oct 12, 2020 at 11:27 UTC | |
by haj (Vicar) on Oct 12, 2020 at 13:54 UTC |