realtimeprojects / quixplorer

simply upload and download files to your webserver with a web-interface
33 stars 27 forks source link

utf8 files with and without BOM are not correctly encoded #10

Closed simonschaufi closed 11 years ago

simonschaufi commented 11 years ago

i have created a utf8 encoded file and uploaded it to my server where i have quixplorer installed. i have german Umlauts included. now when i edit the file i get "ä" for example instead of an "ä".

when the file is uft8 with BOM encoded, then 2 or 3 strange letters are displayed at the beginning of the file.

realtimeprojects commented 11 years ago

Hi Simon,

thanks for your message. :-) I can reproduce the behavior with utf-8 files. The problem is, that the page uses an iso charset by default. All you need to do is to change the charset in the correspondend language files to utf-8 and convert the contents of the file to utf-8. Than displaying utf-8 files works for me.

I did the changes for the english and german language on the master branch. Please let me know whether that fix your problem. Here the changes for the german part: https://github.com/realtimeprojects/quixplorer/commit/9992a25b2718acb121c2305a3e714f3b311f81dc

Best regards..

simonschaufi commented 11 years ago

Yes, that fixes it! Thank you very much! (I edited this comment since i had a broken character saved)

realtimeprojects commented 11 years ago

Thanks.. than i'll close that issue.