Forums / General / online editor and accents

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

eZ debug

Timing: Jan 18 2025 11:36:21
Script start
Timing: Jan 18 2025 11:36:21
Module start 'content'
Timing: Jan 18 2025 11:36:21
Module end 'content'
Timing: Jan 18 2025 11:36:21
Script end

Main resources:

Total runtime0.1679 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.8359180.8438
Module start 'content' 0.00630.0054 769.6797101.8359
Module end 'content' 0.01170.1561 871.5156530.1484
Script end 0.1678  1,401.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.2523200.0002
Check MTime0.00150.8652200.0001
Mysql Total
Database connection0.00080.493910.0008
Mysqli_queries0.120471.69201410.0009
Looping result0.00120.72701390.0000
Template Total0.155792.710.1557
Template load0.00080.500310.0008
Template processing0.154892.239010.1548
Override
Cache load0.00060.357510.0006
Sytem overhead
Fetch class attribute can translate value0.00261.536210.0026
XML
Image XML parsing0.00040.255610.0004
General
dbfile0.00482.8589200.0002
String conversion0.00000.004430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs