I'm kinda new to encoding issues
I have CSV file I get from a client and can't figure out how it is encoded
I have "é" accents that appears like � in vim or openoffice, when I try to encode them to utf8 using mb_convert_encoding( $string, "UTF-8" ) or utf8_encode($string) I get "�"
I tried some latin encodings (ISO-8859-1, ISO-8859-15) to utf8 with iconv and mb_convert_encoding
I also tried a method I found to convert from cp1250 to utf8 and another one from macintosh to utf8
Still no luck. Is there any way to find a solution without asking the client to change his csv encoding to utf8 ?
Thanks a lot !
EDIT In order to find the correct encoding I parsed all the encodings listed in mb_list_encodings() and tried to convert to UTF-8 with each of them. None of them could render a "é". I'll just ask the client to use utf-8 when he exports his csv
Using vim to get the hexadecimal value of the wrong character I can say the � character is actually in the file and the encoding issue is client-side
éand other problematic values, that will help us guess the encoding.