Results 1 to 5 of 5

Thread: Conversion from Unicode to Hindi

  1. #1
    Join Date
    Nov 2009
    Posts
    140

    Conversion from Unicode to Hindi

    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

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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. #3
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    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. #5
    Join Date
    May 2008
    Posts
    2,012

    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

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,908,592.34057 seconds with 17 queries