Re: Loop marker name umlaut question
Re: Loop marker name umlaut question
- Subject: Re: Loop marker name umlaut question
- From: "tahome izwah" <email@hidden>
- Date: Fri, 28 Jul 2006 22:47:33 +0200
Thanks Steve, maybe it's a good idea for me to read the relevant
header files more thoroughly in the future... ;-)
Cheers
Tahome
2006/7/28, Steve Checkoway <email@hidden>:
On Jul 25, 2006, at 10:51 PM, tahome izwah wrote:
> I have successfully integrated writing loop markers to sound files
> using Doug's suggestion of mixing the ExtAudioFile and AudioFile APIs
> but I am encountering a little problem with German umlaut characters
> (you know, the funny ä, ö ü characters, vowels with two dots over
> them). I am setting the marker name using CFSTR("marker name") for
> now, but the umlaut characters get converted like this in QuickTime
> and any other application that can display marker names:
>
> "Dies ist ein längerer hübscher schöner Markername" ->
> "Dies ist ein längerer hübscher schöner Markername"
>
> What can I do so the names are displayed as they should?
My guess is that you're using utf-8 for encoding the umlaut and CFSTR
is probably expecting MacRoman. You should try CFStringCreate() (or
whatever the name of that function is) and use the flag specifying
that it is utf-8. Or, you could use MacRoman in your source code.
Ah, I just noticed that in the CFString.h header, this little comment
about CFSTR():
At this point non-7 bit characters (that is, characters > 127) in
CFSTR() are not
supported and using them will lead to unpredictable results. This
includes escaped
(\nnn) characters whose values are > 127. Even if it works for you in
testing,
it might not work for a user with a different language preference.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden