Problems rendering the Unicode replacement character - unicode

I'm trying to display the Unicode replacement character, but some combination of font and page encoding seems to be causing the character to show up invisibly in the browser. I can highlight the browser content and copy-paste it into a text editor and see the question-in-a-box glyph, so the character is there, but the browser displays no glyph.
I'm processing a text file with a java.nio.charset.CharsetDecoder object (using the "REPLACE" option for onUnmappable), so it should process all inputs and if there are unmappable outputs I should see the replacement character (which is being left as the default).
I'm displaying this content in a jsp which is tagged as utf-8 like this:
<%# page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
And also like this:
meta charset='utf-8'
(first element in the head)
Initially, my page has a font-family CSS setting of 'Courier New', but I've tried various fonts after looking at this page. Something is making the Unicode replacement glyph invisible in the rendered page.

have you tried to change the file format it self into UTF-8 from the editor .

Related

Eclipse font/language error

Source code like this and show result on browser same as code.
enter image description here
I try with UTF-8 but it can't help.
enter image description here
example : ��è��ҡ����������ҡѺ
�е�ͧ���¡���������ҡѺ
Can I solve this in Eclipse or I have to translate it (but I don't know what type of these fonts) ?
A JSP file, just like a XML file, declares within its own contents what encoding to use. You've set it to be read as UTF-8 even though the contents declare it to use TIS-620, most likely in the pageEncoding value of the page directive. Once the text is read by the browser or JSP editor, the font has to support the characters that are there or you will continue to get the incorrect appearance regardless. Not all fonts support all the valid characters.
Close the JSP editor, change the file property dialog back to using the default encoding for its contents, and then reopen the file and change the encoding in the page directive.

url encode %09 not working in email

Not sure why but the unicode for the tab key %09 isn't working when I put it in my a tag. The space and linefeed are both working just not the tab. It seems to be converting it to a space. Maybe it was colapsing the whitespace so I put a ~ in front of one of the tabs.
here is my a tag
click here

Chinese characters showing up as boxes in dreamweaver

When trying to copy paste some Chinese characters in a HTML file open in Dreamweaver I see that its being represented as boxes. When I view the pave on a browser I can see the characters correctly so its just in Dreameaver that they don't show up.
I read some posts on S.O. about utf-8 and saving with BOM disabled.I have even included Chinese on my keyboard with no luck.
edit. I tried editing the Fonts in Edit>Preferences to Chinese but when I click OK and I go back to it it shows Unicode again.
I could just copy and paste everything and it will work but it would be easier if I can see the different characters so when I need to hyperlink some word or include it in a tag I dont have to count boxes and view on the browser to figure it out.
I found out what was the problem. It was an encoding issue on Dreamweaver.
Went to Modify>Page Properties>Title/Encoding and changed the encoding to Chinese.
The Unicode showed up boxes in Dreamweaver.
However if you have already text copied in then they might not turn to the actual characters correctly so you have to re-enter them or if you didn't enter anything text yet its ok.

Cocos2D and UTF-8 (german characters)

I have a .xml file containing some text. The text also has some German charcters (ä, ü, ö) in it.
The XML file is encoded as UTF-8, wich makes it appear fine in every text editor and xcode.
But when showing the text on a Cocos2D CCLabelTTF (iPhone/iPad), the special characters get messed up. They are replaced by one or two ugly characters I have never seen before ;-)
Should I use a different encoding? Or is there a way to make Cocos2D get that right?
BTW: If I enter the same text directly into xcode (without using the xml file), the text shows up correctly on the label...

<blockquote> tags in iTextSharp pdf

I am converting HTML to List using XMLWorker, the indentation (using blockquote tags) not appears in pdf. I have tried creating List with HTMLWorker but the result is same. Is there any way to preserve indentation (when using blockquote tag in HTML for indentation) in pdf?
The blockquote and li do not have indentation to "preserve", its just that almost every browser (if not all) choose to indent them by default. This is an individual choice made by every browser vendor, just as Netscape choose to use grey as the default body background color in the 90's. Any text formatting that you see iText doing is its own "default style" and anything that differs from your expectations you'll need to manually change.
When I try to run a blockquote through the XMLWorker version 5.4.0 I don't see anything and its not on the list of supported HTML tags. Do you have it further wrapped in a SPAN or some other tag? Can you post a sample?
When I run an OL/LI combination through 5.4.0 I see that iText makes them indented. Can you post a sample that doesn't indent? One quick fix would be to apply a simple margin to the UL/OL such <ol style="margin-left:100px;">