|
| ||||||||||
| Tags: devanagari, devanagari, devanagari script, hindi, hindi, programming language, regex, script, script, text, text file, unicode, unicode, vbnet |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Conversion from Unicode to Hindi
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 |
|
#2
| ||||
| ||||
| 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 |
|
#3
| ||||
| ||||
| 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()); |
|
#4
| ||||
| ||||
| 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 |
|
#5
| |||
| |||
| 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() Code: public: virtual Decoder^ GetDecoder() override Code: public override function GetDecoder() : Decoder |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |