Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-05-19 16:40:57

aldoh
New member
Registered: 2005-05-18
Posts: 6

Spanish characters doesnt show!!

All the special characters show a "?". How do i fix this problem?

Offline

#2 2005-05-19 17:17:39

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Spanish characters doesnt show!!

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

#3 2005-05-19 22:53:05

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Spanish characters doesnt show!!

aldoh: as niko says, you need to give more information.  What character sets are involved?  The recommended is utf-8 all the way, but iso-8859-1 should be OK too.


James Sleeman

Offline

#4 2007-06-06 13:09:43

rfouter
New member
Registered: 2007-06-06
Posts: 7

Re: Spanish characters doesnt show!!

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

#5 2007-06-06 13:13:46

rfouter
New member
Registered: 2007-06-06
Posts: 7

Re: Spanish characters doesnt show!!

I forgot to add: these special characters do display properly within Xinha.

Offline

#6 2007-06-11 02:30:31

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Spanish characters doesnt show!!

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

#7 2007-06-11 09:04:27

rfouter
New member
Registered: 2007-06-06
Posts: 7

Re: Spanish characters doesnt show!!

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

#8 2007-06-11 10:08:47

rfouter
New member
Registered: 2007-06-06
Posts: 7

Re: Spanish characters doesnt show!!

I was reading up on HTML Entities but could not find a download link... Can someone point me to it? Thanks!

Offline

#9 2007-06-13 04:11:40

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Spanish characters doesnt show!!

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? smile

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

#10 2007-06-13 09:40:27

rfouter
New member
Registered: 2007-06-06
Posts: 7

Re: Spanish characters doesnt show!!

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 smile

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

Board footer

Powered by FluxBB