You are not logged in.
Pages: 1
All the special characters show a "?". How do i fix this problem?
Offline
where? in the wysiwyg view? waht happens if you switch to text-view?
what charset do you use?
in general xinha works great with utf8, iso-8859-1 should not be a problem either (at least for me it shows all german äüüß chars)
Niko
Offline
Hello,
I have been struggling with this problem for a while now and can offer more detailed info than the original poster.
I have confirmed that Xinha changes the special character codes that I input (Example: & a a c u t e ; ) into the actual character (á) when I save- which then displays as a question mark in all browsers I have tried. The page is UTF-8. I have tried iso-8859-1 as well with the same results.
Pasting the actual special character (á) produces question marks as well.
If I go to html mode, enter the character code and save, it works; but as soon as the WYSIWYG mode is run again and saved, the code is converted to the character. So, when I need to enter special characters, I essentially have to turn off Xinha forever.
As a reference, when I view this page I get all questions marks as well: http://xinha.python-hosting.com/wiki/TracUnicode
Here's the xinha revision:
$LastChangedDate: 2006-01-18 20:10:25 -0500 (Wed, 18 Jan 2006) $
$LastChangedRevision: 461 $
Here's the applicable document headers:
------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
------------------------------------------------
Special character references:
http://www.jneuhaus.com/spanishcharacters.html
http://www.dwheeler.com/essays/quotes-in-html.html
Last edited by rfouter (2007-06-06 13:10:11)
Offline
I forgot to add: these special characters do display properly within Xinha.
Offline
Two things are happening: First, Internet Explorer is changing all the HTML entities it finds in the rich text area to the actual characters. Then, in your system, your encoding does not understand the Spanish characters.
Sure, idealy you would figure out how to change your encoding to directly support the Spanish characters, but while you are figuring that out, it is very easy to make Xinha prevent IE from destroying your entities: just use the HtmlEntities plugin ( http://xinha.python-hosting.com/wiki/Pl … mlEntities ).
Offline
Thanks, but I get the same results in IE or Firefox. If I switch my editor to TinyMCE, my Spanish characters start working properly...
Offline
I was reading up on HTML Entities but could not find a download link... Can someone point me to it? Thanks!
Offline
HtmlEntities (it is included in the Xinha package) is a remedy when you are NOT using UTF-8. It should really be no problem at all when you use UTF-8, that's what it's for, isn't it?
Please make shure
1. you use the same charset in both the page where the editor is embedded AND where the text is displayed
2. Your server may be configured to send chareset headers which may be different than UTF-8 (AddDefaultCharset directive in Apache)
Offline
Ray,
Thanks for the reply!
I think you helped me finally solve my problem. This has been a long journey and I may finally be at the end
As it turns out, the charset on the page where the editor was embedded set to iso-8895-1. I changed this to UTF-8 and all seems to be working without HTMLEntities even.
Thanks!
Offline
Pages: 1