Convert text from Mac OS Roman to UTF8 RRS feed

  • Question

  • User-1120773460 posted

    I've encountered an incredibly frustrating problem during my work with a function to extract META-data from images.

    When reading data from a file created under Windows in any kind och charset there is no problem at all, but when reading from files created under OS X i can't convert it to utf8.

    The problem only occurs on chars like 'å','ä', 'ö' and some other chars that i rarely use.

    Is there any way of converting chars on-the-fly serverside?

    I guess i need a function to determine the actual charset as well.

    I've tried numerous ways of converting with HTMLEncode/Decode and URLEncode/Decode without ANY result at all.

    Monday, September 28, 2009 9:19 AM

All replies

  • User-1713620794 posted

    Hi there!

    Have a look at System.Text.Encoding, the framework's swiss army knife for solving all kinds of encoding related stuff ;-)

    HTH and best regards,

    Friday, October 2, 2009 5:59 AM