online editor and accents

Author Message

Nathalie Grimaud

Tuesday 28 February 2006 2:47:43 am

When I use the online editor (version 4.0.2) with sentences containing accents, the accents are not understood and so the new content is not published.

Otherwise there's no problem with the accents neither in the attribute name nor in the XML block with disabled editor.

Where can I look for a solution (in the editor, eZ, server settings ... ) ?

Thanks for any suggestion
Nathalie

Kirill Subbotin

Monday 06 March 2006 11:58:30 am

Sorry, but what do you mean by accents?
Is it just single quotes, or some special national characters?

If it is national characters, then are you sure you have enabled the correct charset everywhere (ez publish, browser, server) ?

Nathalie Grimaud

Wednesday 08 March 2006 11:45:45 pm

Hi Kirill,

After some tests I can tell you that it's finally a question of additional whitespace and not a question of accent.

My problem comes with the 'à' character.
It is coded as 'Ã ' with a whitespace inside of it.
When I want to write 'à aaaaaa'.
The sentence should be coded as 'Ã aaaaaa' with 2 white spaces between the two words.
As ezxml discards additional white space the 'à' is coded as 'Ã' without a whitespace so it's not understood and the xml block is not stored...

At this time I've only found this problem with the 'à' character and I don't know if some others use a whitespace in their code.

So I'd like to know what is the aim of discarding whitespaces and if I could disable this action.
Nathalie

Kirill Subbotin

Tuesday 14 March 2006 2:35:01 am

I've tried to enter those lines using Unicode (utf-8) charsets and had absolutely no problems.

Also just tried iso-8859-1 and no problems again.

What browser do you use? I'm using Firefox.

Nathalie Grimaud

Tuesday 14 March 2006 3:20:43 am

I use the utf-8 everywhere.

I've found my problem with Firefox.

Here's what happens:
- I put 'à aaaa' in the online editor
- I disable the editor:
* in Firefox the sentence becomes: '� aaaa'
the character is not understood
* in IE the sentence becomes: 'àaaaa'
the whitespace has been deleted

Now:
- I put 'à aaaa' in the online editor
- I send for publishing:
* in Firefox AND in IE my attribute is empty

Now:
- I put 'àaaaa' in the online editor without any whitespace after the 'à'
- I send for publishing:
* in Firefox AND in IE my attribute contains 'àaaaa'

It looks like it's really a question of whitespace...
What do you think of ?

Kirill Subbotin

Tuesday 21 March 2006 12:52:06 am

I can't reproduce it... For me it seems like a configuration problem. Probably your database doesn't support Unicode.

Nathalie Grimaud

Thursday 30 March 2006 4:23:55 am

Hi Kirill,

I finally found a solution just setting in i18n.ini :
[CharacterSettings]
Charset=iso-8859-1

Thanks a lot for your help.

Xavier Dutoit

Thursday 30 March 2006 5:50:39 am

Salut Nathalie,

I'm afraid your solution is more a workaround than anything else. Beware when mixing different charsets, as it will slow down the system.

In one case, I had a real problem with characters being totally messed up (due to an update on mysql). You can't imagine the time I lost on it to fix it.

I suggest you to spend a few more minutes to try to understand the problem, otherwise you might get the same problem I had.

This being said, having everything in latin1 instead of utf8 is another solution. At least if you only deal with english and french.

Take care,

X+

http://www.sydesy.com

Nathalie Grimaud

Friday 31 March 2006 12:15:49 am

Salut Xavier,

you're absolutely right !

I finally choose this solution just because it was an emergency.
I will soon have a few minutes to understand what's wrong with my environment.

Maybe you've got some advice or link to documentation or other topics to give me.
I need to use English, French, German, Spanish and Italian.
It would be nice having precise requirements on that issue for my next projects.

Thanks
Nathalie

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.