Closed vrypan closed 11 years ago
Could you send me some unscrambled greek so I can test this locally? If github accepts unicode, then just as a comment or a gist.
BTW, I'm using greek in the navbar (an alpha) and the anchor on the essay page is unicode.
Greek unicode:
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ αβγδεζηθικλμνξοπρστυφχψω Αυτό είναι το ελληνικό αλφάβητο.
The final output (HTML) is unicode. But it looks like at some point, your code treated a unicode string as ASCII ( treating, more or less, 2-byte characters as 2 single-byte characters)
I have Unicode working beautifully locally, but still having problems when I deploy it... Still investigating.
Sometimes it's the DB settings (or the DB connector, or something?). I have no java experience, but if this is the case, make sure that the locale settings are the same between your local installation and the production environment.
I'm not storing the essays in my database, but maybe my host is using a different default encoding for its JVM.
This should be resolved now.
http://essayist.mndj.me/vrypan.tent.is/essay/be6q3l looks good.
It works. Thank you!
unicode text is scrambled. Here is an example: http://essayist.mndj.me/vrypan.tent.is/essay/be6q3l The characters in the title and body (in the parenthesis) should be Greek, but are scrambled. This is usually the case with unicode text treated as ASCII at some point in the code.