Re: wchar_t* turned into a char*?
Re: wchar_t* turned into a char*?
- Subject: Re: wchar_t* turned into a char*?
- From: Allan Odgaard <email@hidden>
- Date: Tue, 27 Jul 2004 21:26:40 +0200
On 27. Jul 2004, at 4:05, Mark Morrill wrote:
The surprise comes in when I try to dump wstr as unsigned shorts.
"NR[Dc"
is stored as UTF-8! [...]
Two problems here 1) wchar_t is implementation defined (so don't expect
ucs-4) and 2) gcc does not understand any source file encoding, so if
you write L"(something)", it will literally take every octet in the
source file, extend it to wchar_t and put it in the string.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.