I generated a SQL script from a C# application on Windows 7. The name entries have utf8 characters. It works find on Windows machine where I use a python script to populate the db. Now the same script fails on Linux platform complaining about those special characters.
Similar things happened when I generated XML file containing utf chars on Windows 7 but fails to show up on browsers (IE, Firefox.).
I used to generate such scripts on Windows XP and it worked perfect everywhere.
Please give a small example of a script with “utf8 characters” in the “name entries”. Are you sure that they are
utf8and not some windows encoding like `cp1252′? What makes you sure? Try this in Python at the command prompt:The interesting parts of the output are where it uses
\xhh(where h is any hex digit) to represent non-ASCII characters e.g.\xc3\xa2is the UTF-8 encoding of the small a with circumflex accent. Show us a representative sample of such output. Also tell us the exact error message(s) that you get from that sample script.Update: It appears that you have data encoded in
cp1252or similar (Latin1akaISO-8859-1is as rare as hen’s teeth on Windows). To get that intoUTF-8using Python, you’d dofixed_data = data.decode('cp1252').encode('utf8'); I can’t help you with C# — you may like to ask a separate question about that.