Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , , , , , , , , ,

Sponsored Links


Conversion from Unicode to Hindi

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-11-2009
Member
 
Join Date: Nov 2009
Posts: 133
Conversion from Unicode to Hindi

Sponsored Links
Hi,

I have a small query which i hope can be resolve with your opinion, so for that reason i am here. My query is simple i just want to convert my Unicode text file to the Devanagari script file but i don't know how to do the same so please help me if you know the answer. And if possible tell me how to convert it using VB.NET programming language.

Regards:

D_chapple

Reply With Quote
  #2  
Old 28-11-2009
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,839
Re: Conversion from Unicode to Hindi

Hey dude,

If i am not wrong then i think, i have never heard about text file format like this. It coulde be the file format you are talking about is UTF encoded. The UTF encoded file mostly used by the C or C++ code. All the log file of the Microsoft are of the same format. That much i can tell you about the same. Because when i never heard about the file like this then.

Hope you will read that file format again tell me next time or if it exist then also i wanted to know about the same.

Thank you
Reply With Quote
  #3  
Old 28-11-2009
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,507
Re: Conversion from Unicode to Hindi

Hello there,

I hope your are the lucky one that i got this problem first so you don't have to look more further. Because i am having same problem and i got the solution which i am posting here

Code:
string input = "Type your UNICODE here;";
Regex rx = new Regex(@"([0-9A-Fa-f]{4});");
string output = rx.Replace(input, match => ((char)Int32.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());
And you will get the desired output of your choice.
Reply With Quote
  #4  
Old 28-11-2009
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,943
Re: Conversion from Unicode to Hindi

Hey here are some information about the Unicode decoding method just go through it.

The Decoder.GetChars method converts sequential blocks of bytes into sequential blocks of characters, in a manner similar to the GetChars. However, a Decoder maintains state information between calls so it can correctly decode byte sequences that span blocks. The Decoder also preserves trailing bytes at the end of data blocks and uses the trailing bytes in the next decoding operation. Therefore, GetDecoder and GetEncoder are useful for network transmission and file operations, because those operations often deal with blocks of data instead of a complete data stream.

For more knowledge:

Click Here
Reply With Quote
  #5  
Old 28-11-2009
Member
 
Join Date: May 2008
Posts: 2,000
Re: Conversion from Unicode to Hindi

For decoding UNICODE Microsoft has specified some of the coed which are as given below justgo through it i hope it will help you out. So one of these and enjoy with decoding in Devanagari.


For Visual Basic user
Code:
Dim instance As UnicodeEncoding
Dim returnValue As Decoder
returnValue = instance.GetDecoder()
For Visual C++
Code:
public:
virtual Decoder^ GetDecoder() override
For JavaScript
Code:
public override function GetDecoder() : Decoder
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Conversion from Unicode to Hindi"
Thread Thread Starter Forum Replies Last Post
MS excel is not asking for CSV and Unicode (or UTF-8) Kshama Windows Software 5 16-07-2011 07:15 PM
Displaying the value of a Unicode character Remedy Software Development 5 26-02-2010 01:29 AM
What is the unicode in PHP V5.3 Abigail101 Software Development 5 19-02-2010 11:50 PM
Regular expressions for unicode Solaris Software Development 4 15-12-2009 11:20 AM
Non-gui tool to modify unicode .ini file cheerful Windows Software 2 25-08-2009 09:12 PM


All times are GMT +5.5. The time now is 11:08 PM.