Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Why does $ascii not support German modifiers? Causes me problems (Read 2161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Why does $ascii not support German modifiers? Causes me problems

OK, I'm just curios who was the smart guy who decided to drop German scharfes-s in $ascii()? Is it that hard to cover the common Western EU languages (ISO-8859-1) decently? Scharfes-s goes to ss, Vowel+umlaut goes to Vowel-e (eg ae, oe etc).

50 CDs ruined.

Why does $ascii not support German modifiers? Causes me problems

Reply #1
That's the ASCII standard.

Tagging of 50 CDs should be fairly easy to properly retag with first fixing the album/artist tags by release and then fixing the title tracks by once selecting all tracks and then editing the title tag track by track.

Why does $ascii not support German modifiers? Causes me problems

Reply #2
The $ascii() function is implemented using a standard Windows function for character set conversion. Note that the function performs a conversion and not a transcription. This means it replaces each Unicode character with its ASCII equivalent if one exists. A transcription would be what you wanted, i.e. replacing each Unicode character with a sequence of ASCII characters to preserve the meaning of the original. In foobar2000 this is best done using the $replace() function instead of the $ascii() function. For example:
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss)

Why does $ascii not support German modifiers? Causes me problems

Reply #3
Not the most polite tone for a first post

... says a german

Why does $ascii not support German modifiers? Causes me problems

Reply #4
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,ue,ü,ue,ß,ss)
Small correction, Ü should become Ue:
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss)


Why does $ascii not support German modifiers? Causes me problems

Reply #5
Oops, thanks for the correction.