• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: wchar_t* turned into a char*?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.



  • Follow-Ups:
    • Re: wchar_t* turned into a char*?
      • From: Mark Morrill <email@hidden>
References: 
 >wchar_t* turned into a char*? (From: Mark Morrill <email@hidden>)

  • Prev by Date: Re: Newbie question (from Bonny Scotland)
  • Next by Date: Re: Newbie question (from Bonny Scotland)
  • Previous by thread: Re: wchar_t* turned into a char*?
  • Next by thread: Re: wchar_t* turned into a char*?
  • Index(es):
    • Date
    • Thread