You are not logged in.
Pages: 1
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
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
It should work, I've just tested it here: http://xinha.raimundmeyer.de/x_examples/restricted.php
Offline
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
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
Is the encoding being set in your http headers? Does it match the meta tag encoding?
Offline
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
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
Pages: 1