Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,069 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,583 people online right now. Registration is fast and FREE... Join Now!




Print japaneese character on linux terminal and debugging

 
Reply to this topicStart new topic

Print japaneese character on linux terminal and debugging

rajeshgalla
14 Apr, 2008 - 12:04 AM
Post #1

New D.I.C Head
*

Joined: 10 Oct, 2007
Posts: 8


My Contributions
Hi everyone,

Question1 : I want to print a japaneese character on linux console. I did following changes before printing on linux console (Putty 0.60).
1. Change console setting to “utf-8” translation.
2. Check locales which are available in console using “locale –a “command.
3. set the appropriate locale using export LC_ALL=”respective locale” (here in this case I have set it to “ja_JP.utf8”).
I am transferring japaneese character from word document using copy and printing it on console using right click. But on console I am getting [] [] (some boxes)
Question2: I want to debug japaneese character using gdb. How can I check japaneese characters for a wide char pointer?
Ex: char *ch=”hi”; Using gdb
(gdb) print ch (or) display ch Will print “hi”
Like this how can I print wide char characters on gdb. Consider I have a input wchar_t *wch=L” 学の”; (If i am able to check wide characters it will help me for debugging)

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 06:52PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month