![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
multi byte to wide char converting problem(Related to Unicode)Hi,
I prepared this program please go through it. i am running this program in linux with gcc compiler. i am giving input in the tmp.txt file with Telugu or Hindi characters. But I am not getting proper output. I found 2 problems: 1. These characters are not converting to wide characters. 2. On the console characters are printing with some junk value. Can any one help me to solve. CPP / C++ / C Code:
Last edited by LuciWiz : 13-Oct-2007 at 13:05.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|
#2
|
|||
|
|||
Re: multi byte to wide char converting problem(Related to Unicode)Quote:
Another important thing looking at your code is that you are making a command line application, not an x-windows application. If you try to make commandline application and expect to see some writing in telugu scripts the task can be quite difficult. Even if you would succeed to tweak Your system to the right condition to display telugu, the same program will not display the same way in another computer. e.g. in my linux. So first question is: what are your locale settings ? if you write in your shell : Code:
You must have locale that is capable displaying hindi and telugu. What I checked from other sources I found that for handling hindi that is devanagari writing the LANG should be "hi_IN.UTF-8" And for displaying telugu "te_IN.UTF-8". I really do not know if there exists locale which enables you to display both devanagari and telugu on commandline at the same time. While it is possible to display various characters on command line I think x-windows would be much more suitable for displaying other-than-latin texts. So why not use x-windows ? Quote:
Formatted according to which standard ?? is it UTF-32 or perhaps UTF-16 ?? |
|
#3
|
|||
|
|||
Re: multi byte to wide char converting problem(Related to Unicode)update to the previous:
the following source (although the date is not very recent): http://www.ibiblio.org/pub/Linux/doc...ic-Fonts-HOWTO claims in point 3.1 that you cannot get linux console to display devanagari characters. So it would seem that X-windows app is the only practical choice. |
Recent GIDBlog
Meeting the populace by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pointer initialization causing program abend? | emanresu | C Programming Language | 0 | 12-Dec-2006 10:36 |
| getting an error while compiling and running using different IDE. | jaro | C Programming Language | 0 | 25-Aug-2006 09:14 |
| Converting a BYTE array to a string | qrio12 | C++ Forum | 5 | 10-Jun-2006 09:42 |
| Memory cannot be read? | dlare9 | C Programming Language | 3 | 16-Nov-2005 07:03 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 20:30 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The