I have to tes开发者_如何学Got a web app and its API for UTF-8 strings.
Webapp has a text field and its API has corresponding getter method, I have to make sure UTF-8 will work, how do I do that?
You could put in characters outside of the standard ASCII set - i.e. anything above 127 or 255 in the character levels and see that they come out the other end of the API correctly.
Here is a character map generator:
http://dev.networkerror.org/utf8/
aperkins gave a good suggestion.
Note that depending on your IDE, you may need to set the your editor to UTF-8 and set the java compiler option -encoding utf-8
精彩评论