Announcement

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

#1 2009-09-13 08:05:02

juffer
New member
Registered: 2009-09-13
Posts: 3

Special characters

Hi,

I've been using Xinha for quite some time now in one of our projects. Lately I am experiencing a problem with special characters. We rely on the default configuration of Xinha without any modifications.

The problem that we have is related to character encoding. The application for which we use Xinha in entirely encoded with UTF-8. When an user enters a special character like the symbol for the Euro €, upon submission this gets incorrectly encoded. I tried also the most recent beta version of Xinha, but the problem persist. Oddly enough, when I change the encoding of the form to ISO-8859-1 with accept-charset="ISO-8859-1" of the form element, everything is fine, at least with Firefox (but not for Explorer). When users manually change the encoding of the page to ISO-8859-1 or even windows-1252, no problem at all (tried with Firefox, Opera, and Explorer).

Note that the problem is on client side, -not- on the server side. This we tested by submitting the form with method="GET". We clearly see that the special character is already incorrectly submitted.

I though that I had to explicitly retrieve the editor's content with Javascript before submitting the form, e.g. with

var editor = Xinha.getEditor("instructions");
var content = editor.getEditorContent();
editSopForm.instructions = content;
editSopForm.submit();

to enforce proper encoding ('instructions' is the name of the editor, 'editSopForm' name of the form.) This did not work either.

I must be making a thinking error but I cannot understand why this is not working. In my understand, Xinha internally works with Unicode, so this whole issue of character encoding should not even come up, if the application using Xinha uses UTF-8.

Any help or suggestion would be appreciated.

Thanks.

Offline

#2 2009-09-14 12:09:08

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: Special characters

xinha is supposed to use the character encoding of the parent document. Is the character encoding of the parent document explicitly set with a meta tag? A content header?

Offline

#3 2009-09-16 04:44:13

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

Re: Special characters

It should work, I've just tested it here: http://xinha.raimundmeyer.de/x_examples/restricted.php

Offline

#4 2009-09-21 04:45:50

juffer
New member
Registered: 2009-09-13
Posts: 3

Re: Special characters

I explicitly set everything to UTF-8. And yes, I do use a meta tag. In fact, the whole application works with UTF-8. I really have no idea how to tackle this issue.

Offline

#5 2009-09-21 05:12:46

juffer
New member
Registered: 2009-09-13
Posts: 3

Re: Special characters

I should note that I use Xinha in combination with Dojo 1.2. While I do not think that this should cause any problems in relation to character encoding, I thought it is worth mentioning it. The server to which the editor content is sent runs Jetty and cocoon, see http://cocoon.apache.org/

Offline

#6 2009-09-21 14:22:47

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: Special characters

Is the encoding being set in your http headers? Does it match the meta tag encoding?

Offline

#7 2009-09-23 05:19:43

gary.wilson
New member
Registered: 2009-09-23
Posts: 4

Re: Special characters

MAY THESE HELP YOU

http://xinha.gogo.co.nz/punbb/search.ph … =786920998
http://xinha.python-hosting.com/wiki/Pl … mlEntities
http://xinha.python-hosting.com/ticket/127

----------------------------------------------------------------------------------------------------------

easy candy recipe | recycled plastic outdoor furniture | pet gear stroller | recycled plastic patio furniture

Last edited by gary.wilson (2009-09-29 02:18:18)

Offline

#8 2009-09-27 16:13:51

Kulikova
New member
From: ÓÑÑÐ
Registered: 2009-09-27
Posts: 1
Website

Re: Special characters

I was thinking that people who take sometimes hard time on completing the campaigns should be somehow rewarded...

There are few possibilities:

1 Exclusive Encyclopedia of widen race characters describtions, like some story behind a unit after completing the race campaign

2 Special bonus for the main hero, which will be exportable for multiplayer games. A special trait gain through scenarious or very unique artifactfor example made by ourselves in the campaign and in the end of creation we give it a name and choose special properties, even more in multiplayer players could compete who has gained most of them from killed heroes of other players

3 Special trait, but not stats, rather the look of a hero, like a rune on the forehead or a scar.

4 Somekind of a title, this could apply as well for multiplayer like some ranking...


[url=http://www.lavka.zt.ua/][color=#FF8040]ÁÅÑÏËÀÒÍÛÅ[/color] îáúÿâëåíèÿ Æèòîìèð[/url]

Offline

Board footer

Powered by FluxBB