jlizarraga
01-12-2009, 10:02 PM
Hi all,
Just a few simple questions about UTF-8 and special characters:
1. When using UTF-8 and XHTML/HTML, is it required that you use a character code to display a special character, or can you just write the plaintext special character? For instance, a small "A" with an accent is "U+00E1" in Unicode and "á" in HTML.
2. If you can just write the plaintext character with UTF-8 encoding, must the server also be configured to support this?
My situation:
All my pages are UTF-8. In HTML, I must use the HTML escape code or I get the question-mark-in-diamond (http://i27.tinypic.com/szwkma.png) symbol in Firefox. In Javascript, I must use the UTF-8 escape code or I get the same diamond question mark.
I turned to Google, but found confusing answers. A common answer I found to any sort of special character problem was to simply switch your document to UTF-8 encoding and that all your special characters would render properly, but that is clearly not the case as my situation seems to be the opposite. That's why I ask if there is a matching server setting for other languages.
Just a few simple questions about UTF-8 and special characters:
1. When using UTF-8 and XHTML/HTML, is it required that you use a character code to display a special character, or can you just write the plaintext special character? For instance, a small "A" with an accent is "U+00E1" in Unicode and "á" in HTML.
2. If you can just write the plaintext character with UTF-8 encoding, must the server also be configured to support this?
My situation:
All my pages are UTF-8. In HTML, I must use the HTML escape code or I get the question-mark-in-diamond (http://i27.tinypic.com/szwkma.png) symbol in Firefox. In Javascript, I must use the UTF-8 escape code or I get the same diamond question mark.
I turned to Google, but found confusing answers. A common answer I found to any sort of special character problem was to simply switch your document to UTF-8 encoding and that all your special characters would render properly, but that is clearly not the case as my situation seems to be the opposite. That's why I ask if there is a matching server setting for other languages.