-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove convertAsciiToUtf8() #272
Comments
|
I've already checked that, removing And I've found out that the character ( ´ ) that looks like a single quote ( ' ) is actually U+2019. Which has/had its own code 0x92 in codepage windows-1252. (It seems the title name was created on a system using that codepage and/or someone who really likes utf8 codes). U+2019 gets utf8 encoded as 0xe2 0x80 0x99. And the 0x99 (which is a 'Ö' in cp437) gets converted by Thank you wikipedia for this (unwanted!) knowledge about codepages... Back to the topic of fixing this: My current version is this: orempel@f94377f |
LGTM! For backward compatibility: For correct import from old version we should make a character conversion from OEM-852 to UTF-8, this might be the reason for the line in Line 98 in d5c7ab4
Another possibility would be to leave it as it is and the user has to save the backup once, e.g. with Notepad++ with new encoding |
Problem was reproducable after uploading a file like "Ägypten.mp3" via WebUI. Feel free to make another suggestion for the replacement of convertFilenameToAscii(). |
Moin!
With the change to Arduino v2 "everything" is utf8 ready. Which means that the
convertAsciiToUtf8()
function is actually doing more harm that good: playing some files result in constant errors in the terminal and no updates in the web interface:I will create a PR for that, but just want to ask if it make sense to rip out
convertFilenameToAscii()
as well. That function was updated for the utf8 change and is now just copying c-strings around.Thanks!
The text was updated successfully, but these errors were encountered: