locked
How to set text encoding for... RRS feed

  • Question

  • User-747987396 posted
    ... xhtml 1.1 schema?

    And what to use?
    System.Text.UTF8Encoding?
    System.Text.UTF32Encoding
    System.Text.Unicode?

    What is the best option and why?

    Thanks

    Sunday, September 4, 2005 5:21 PM

All replies

  • User1416329745 posted
    Try the link below to Unicode encode in VS 2003.  Hope thsi helps.

    http://www.aspnetresources.com/blog/unicode_in_vsnet.aspx
    Tuesday, September 6, 2005 3:00 PM
  • User-747987396 posted

    Yeah. That is ok. Nice article. I knew that I shuld use unicode, but which one is best to use?

    or example my MySQL server is set to use UTF-8 by default, but in ASP.NET I have UTF-16 (which is defaulted as 'unicode') to choose too.

    Will that make problems when reading/writting to and from database? And what type of uniode should I select so I don't have to think about it never ever more...

     

     

    Thanks.

    Tuesday, September 6, 2005 3:25 PM
  • User1416329745 posted

    Try the links below MySQL use UCS2 and UTF8 I would try out both because UC2 is like UTF16 in behavior but uses less resources.  The good thing is Uncode collation and characterset information is covered  in MySQL documentation.  Hope this helps.

    http://dev.mysql.com/doc/mysql/en/charset-unicode-sets.html

    http://dev.mysql.com/doc/mysql/en/charset-charsets.html

    Tuesday, September 6, 2005 11:56 PM