gdb7.5 print utf8 string show string address not string content



I have just installed the latest released gdb--gdb7.5。 when i used it to debug the c++ program which is encoded with utf-8, i set the gdb charset to utf8 with the command" set charset utf-8". However when i want to print a string : char *str = "明天是个好天气" , the "p str" result is the address of the string rather than the content. So is there anyting necessary for gdb to debug utf8 string?


Breakpoint 1, test () at test.cpp:6


6 char *str = "我们的世界多么美好";


(gdb) n


8 printf( "%s
" , str );


(gdb) p str


$1 = 0x40067c "0221们2204265214321016好"

medianet_width='336'; medianet_height= '280'; medianet_crid='202258688';

Related to : gdb7.5 print utf8 string show string address not string content
gdb7.5 print utf8 string show string address not string content
Development Tools & Services

I have just installed the latest released gdb--gdb7.5。 when i used it to debug the c++ program which is encoded with utf-8, i set the gdb charset to utf8 with the command" set charset utf-8". However when i want to print a string : char *str = "明天是个好天气" , the "p str" result is the address of the string rather than the content. So is there anyting necessary for gdb to debug utf8 string?


Breakpoint 1, test () at test.cpp:6


6 char *str = "我们的世界多么美好";


(gdb) n


8 printf( "%s
" , str );


(gdb) p str


$1 = 0x40067c "0221们2204265214321016好"

Use of SPListCollection.Add Method (String, String, String, String, Int32, String, SPListTemplate.QuickLaunchOptions) in sharepoint
Development Tools & Services

How to use of SPListCollection.Add Method (String, String, String, String, Int32, String, SPListTemplate.QuickLaunchOptions) for creating sharepoint document library programmatically using asp.net?
or
Can you plz show me steps for creating document library programmatically/dynamically using asp.net in Itemadding event?


Thanks in advance
Hiral


Help: the best way to convert UTF8 string into Unicode 2 string
Development Tools & Services

maybe its a very simple and basic question, but I hope you can help me to find out the best way.
Q: I have to convert a string in UTF8 into Unicode, in order to display this string in an applet.
My solution: we can use the String constructure to convert the UTF8 byte_array into Unicode as below:
String ucs2_str = new String(utf8Bytes, "UFT8");
but at first, I have to get the UTF8 byte array, I cannt use the Strings method getBytes, as bellow:
byte[] utf8Bytes = uft8_str.getBytes("UTF8");
since the utf8_str is in UTF8, not Unicode.
So T have to get the original char from utf8_
How to convert an ASCII string to an UTF8 string in C++?
Development Tools & Services

How to convert an ASCII std::string to an UTF8 (Unicode) std::string in C++?




HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .