Wrong encoding of foreign language with CB message

16 years 3 months ago #55998 by slabbi
Have you enabled obfuscating of messages?

The problem may also appear when magic quotes are on or off (don't remember the default now and have not tested if this might be a problem actually).

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

16 years 3 months ago #55999 by alterna
No obfuscating or encryption-
But Magic quotes is enabled on my website.

Please Log in to join the conversation.

16 years 3 months ago #56006 by slabbi
Maybe I found a workaround for people who use encryption/obfuscating and for people which habe troubles with encoded html entities

Please check and report if it works:
joomlacode.org/gf/project/com_uddeim/scmsvn/?action=browse&path=%2Ftrunk%2Fplug_pms_uddeim11%2F

It result is not 100% correct but it should do the job.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

16 years 3 months ago #56010 by alterna
Here is the result attached. It worked for some encoded characters but not all.

The links are better looking but still not as intended.

Anyway this can work better than nothing

Attachment erreur.zip not found

Attachments:

Please Log in to join the conversation.

16 years 3 months ago #56015 by slabbi
ok, next try

Please check and report if it works:
joomlacode.org/gf/project/com_uddeim/scmsvn/?action=browse&path=%2Ftrunk%2Fplug_pms_uddeim11%2F

I discussed it with beat and language files should not use html entities, so it is definitely a problem with CBs language file.

So my changes are only a dirty fix to suppress the symptoms.

The CB link should work now I hope.

Post edited by: slabbi, at: 2008/02/04 21:02

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

16 years 3 months ago #56027 by beat
alterna wrote:

Here is the result attached. It worked for some encoded characters but not all.

The links are better looking but still not as intended.

Anyway this can work better than nothing

Attachment erreur.zip not found


This is clearly a language file problem.

Just go into your CB language file, and change all &....; by their corresponding characters, just escaping ' with a backslash \\ ' before them.

You will need to save your language file in the same charset as your site template (e.g. utf8 without bom if your site template is utf8, or iso 8859 if the template is such.

CB expects language files to not be entity-encoded, as it does the encoding at display time using only htmlspecialchars() .

Doing it any other way would bring a big hit in performance, usability and security.

Just fix the language file and publish it in the CB 1.1 language subforum, so for next CB versions, it's right :)

EDIT: oops, just saw Stephan's reply... anyway, we agree.. :)

Post edited by: beat, at: 2008/02/04 22:32

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.265 seconds

Facebook Twitter LinkedIn