Hi there! - I'm using a servlet to generate and output a string resulting from an XSLT transformation. The problem is, that in the web browser those ugly "?" marks will appear.
I'm quite experienced with character encodings and XSLT transformations (mainly on Windows - this is on Linux -, using .NET instead of Java, but have used XSLT transformations with Java, too), but this is the first time I'm using this with Java web applications. Of course, I've set
before outputting the result.
I could, of course, post the code (either in snippets or upload the complete project somewhere), but I thought you wouldn't handle this. It's, I currently have no clue how to continue... I.e., how to debug this, and where to start.
I would really appreciate some guys to subscribe to this question, and would be willing to post the code, etc., and everything until this issue will be solved.
Joined: Mar 22, 2005
Welcome to JavaRanch.
A couple of points to investigate:
Is the page that arrives in your browser actually in UTF-8?
Does the page display correctly if you change the encoding in the browser to something else?
Does the font you use in the page contain the characters that appear as "?" ?