annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
592 stars 142 forks source link

Non english comment encoding #126

Closed BLorant closed 9 years ago

BLorant commented 9 years ago

Is there a way to change the encoding in the comments? I need to use non english characters and all it gives me is jiberish.

rsimon commented 9 years ago

Hi. Hm, could this be a page encoding issue? I just tried with, e.g. Greek characters and German umlauts on the demo page and things were displayed fine.

Does adding

<meta charset="UTF-8">

to the page help in your case?

BLorant commented 9 years ago

HI!

Yes it is an encoding issue. Sorry for the post I figured its with the whole page but

is added to the page and the problem still exists.

rsimon commented 9 years ago

Hi,

can you provide a more detailed report of your problem? As I said: I tried creating an annotation with Greek script on the demo page. After storing the annotation, the popup displays the text just fine. If you can describe the steps you are making, and the results you are getting, I may be able to reproduce your problem.

Cheers, R

BLorant commented 9 years ago

Well I'm using Spring Mvc and the problem is when i get the text from the element on the Front-end its fine but when I pass the parameters to the server with an ajax call on the server side its full of "?". It does not matter if its a pathVariable or a modelAttribute. But my problem is clearly not with Annotarious.

gsergiu commented 9 years ago

So .. I assume you have a similar problem to the one described in the following post .. isn’t it? http://stackoverflow.com/questions/11350918/spring-mvc-request-encode-issue

Br, Sergiu

From: BLorant [mailto:notifications@github.com] Sent: Dienstag, 14. April 2015 17:01 To: annotorious/annotorious Subject: Re: [annotorious] Non english comment encoding (#126)

Well I'm using Spring Mvc and the problem is when i get the text from the element on the Front-end its fine but when I pass the parameters to the server with an ajax call on the server side its full of "?". It does not matter if its a pathVariable or a modelAttribute. But my problem is clearly not with Annotarious.

— Reply to this email directly or view it on GitHubhttps://github.com/annotorious/annotorious/issues/126#issuecomment-92892841.

BLorant commented 9 years ago

Thanks for the help! I Solved it it was a spring config issue.

gsergiu commented 9 years ago

Hi Lorant,

It would be nice if you share the changes you made in the spring/server configurations with as. They might be usefull as a reference for other people that are building backends for Annotatorious.

Thank you in advance! Sergiu