.NET Framework Bookmark and Share   
 index > .NET Base Class Library > Problem with Encoding the unicode
 

Problem with Encoding the unicode

When I convert the following unicode to English it is not converting and instead it is showinf ?, ?, ?, ?.
My code snippet is following.
string

unicodeString = "\u307b,\u308b,\u305a,\u3042,\u306d";

byte

[] srcData = Encoding.Unicode.GetBytes(unicodeString);

byte[] asciiBytes = Encoding.Convert(Encoding.Unicode,

Encoding.Default, srcData);

string asciiString1 = Encoding.Default.GetString(asciiBytes);

So please help me how to solve this problem.

sandiliya
Translating Hiragana to English requires massively parallel computing hardware. The kind that you'll only find between the ears of a native Japanese speaker that is also fluent in English. They usually work for companies that specialize in localization services.

Hans Passant.
nobugz
You are converting from unicode to your local code page which probably doesn't support the characters you're using. What are you trying to achieve?
Michal Burger
I want to convert the aboveunicodestring to English. How can I achieve this?
(My requirement is i want to convert string which is in english to different languages depending upon my user selection.
So for this first i want to convert the string which is in english to Unicode and then by Using Encoding.Convert() i want to convert that unicode to my target language.)
sandiliya
Translating Hiragana to English requires massively parallel computing hardware. The kind that you'll only find between the ears of a native Japanese speaker that is also fluent in English. They usually work for companies that specialize in localization services.

Hans Passant.
nobugz
So can you please tell me the way's how can i achieve the above my requirement?
sandiliya
Asked and answered. Contact a localization services company.

Hans Passant.
nobugz

You can use google to search for other answers

Custom Search

More Threads

• Crystal Reports ??
• Type.GetType(string typeName) not working for my classes
• Codedom namespace Help
• Variables that hold a reference types not being set to null when done within Generic List
• How do I get a .NET TextBox to implement MY OWN INTERFACE
• how to set up SQL connection with Windows authentication using asp.net (VB)
• Draw a Circle in vb.net or c#.net?
• Setting an assembly icon from a DLL
• Using System.Data.OleDB provided by ADO.NET 2.0 factory model
• arraylist in visual 2008