L
Lau Lei Cheong
Hello,
I'm trying to write a converter for converting between Big5 and UTF-8,
but I want to make sure a few facts before writing.
1) I know that by default .NET store string in unicode. Would there be
any problem if I store Big5 characters in the string? Or could I set the
codepage setting for individual string?
2) There are basically three types of Unicode scheme - UTF-7, UTF-8 and
UCS-2. Which one does the default Unicode setting refer to?
3) Same as 1) but this time is for char[].
I'm writing this because the webpage I'm writing is in Unicode, it
stores data to MySQL database which store data in Big5, and we also have a
backend written in VB6 which would be nearly rewritting if need to change to
Unicode. Here, I plan to translate the data immediately when read from the
database and vice versa so no other existing part need to be changed. I'm
using LibEx with MyODBC for accessing MySQL.
This post will be crossposted to
microsoft.public.dotnet.internationalization.(The i18n group seems more
appropiate, but as I'm also asking how strings are stored in .NET
applications, I think it's also good to post in here.)
Any advice would be greatly appreciated. Whether for the questions or
for a better way to fatch the data so no manual translation is needed.
Thanks in advance.
Regards,
Lau Lei Cheong
I'm trying to write a converter for converting between Big5 and UTF-8,
but I want to make sure a few facts before writing.
1) I know that by default .NET store string in unicode. Would there be
any problem if I store Big5 characters in the string? Or could I set the
codepage setting for individual string?
2) There are basically three types of Unicode scheme - UTF-7, UTF-8 and
UCS-2. Which one does the default Unicode setting refer to?
3) Same as 1) but this time is for char[].
I'm writing this because the webpage I'm writing is in Unicode, it
stores data to MySQL database which store data in Big5, and we also have a
backend written in VB6 which would be nearly rewritting if need to change to
Unicode. Here, I plan to translate the data immediately when read from the
database and vice versa so no other existing part need to be changed. I'm
using LibEx with MyODBC for accessing MySQL.
This post will be crossposted to
microsoft.public.dotnet.internationalization.(The i18n group seems more
appropiate, but as I'm also asking how strings are stored in .NET
applications, I think it's also good to post in here.)
Any advice would be greatly appreciated. Whether for the questions or
for a better way to fatch the data so no manual translation is needed.
Thanks in advance.
Regards,
Lau Lei Cheong