Skip to Content Skip to Menu

(SOLVED+FIX) Realnames character encoding bug

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 6 months ago #62386 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
grvulture wrote:

by removing the "rawurlencode" in uddeim.php, at least the autocomplete function works ok!


This will be changed in uddeIM 1.2, so the autocompleter should also have full utf-8 support.

The other problems seems to be browser related. Are you sure that your site template delivers the correct language setting?

Some browser did not use these settings and use a quirks mode to display the site (e.g. when they find utf-8 characters and latin-1 is chosen by the template) so this might explain why on your browser everything is ok. Maybe the guys which see the wrong encoding use a browser (or setting) which strictly displays the chosen set.

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

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 6 months ago #62387 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
kruptos wrote:

When I am at someone's profile and try to send a message to him/her from Messages/Send Private Message, the name in the field "To:" is looking like this: "��боми� �и�илов"
When I choose the name from the drop down box everything is just fine!


Strange. Does this only happen when calling from the profile?

Could you use this link
www.yoursite.de/component/option,com_uddeim/task,new/recip,XXX/
replace XXX with an userid that exists.
Is the name displayed correctly?
(maybe you have to change the link according to your SEF settings)

Post edited by: slabbi, at: 2008/05/06 08:37

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

Please Log in or Create an account to join the conversation.

  • kruptos
  • kruptos
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #62432 by kruptos
Replied by kruptos on topic Re:Realnames character encoding bug
Yes, this is happening only when I'm calling from the someone's profile.

I'm using the following link:
mysite.net/component/uddeim/?task=new&recip=64
and it's not working!

Perhaps this is similar to the link you wrote me to try!?!? If it's not... I could use some extra help :)
Sorry, but I'm not familiar with these SEF links

Post edited by: kruptos, at: 2008/05/06 23:42

Post edited by: kruptos, at: 2008/05/06 23:48

Post edited by: kruptos, at: 2008/05/06 23:48

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 6 months ago #62451 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
Ok, send me an account for your site please.
Frontend only should be ok for now, so I can check what happens.

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

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 6 months ago #62460 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
Strange. To explain what happens:

When you call uudeIM like this
domain.net/component/uddeim/?task=new&recip=63
uddeIM requests the username from the database which is done in uudeim.php in uddeIMnewMessage(). After that $recipname contains the username (maybe utf-8 encoded).

This value is used in drawWriteform() in includes.php when the form is displayed:
[code:1]echo "<input type='text' ".$errorstyle."name='to_name' id='input_to_name' value='".htmlentities($recipname, ENT_QUOTES)."' /> ";
[/code:1]

Mybe htmlentities() is not utf-8 compatible. Could you try following please:

1. Add a third parameter, so it is
htmlentities($recipname, ENT_QUOTES, $config->charset)
This should be the best solution if it works!

2. Remove both htmlentities used in this function
This is a quick'n'dirty fix which should be used only when (1.) does not work.

Post edited by: slabbi, at: 2008/05/07 11:44

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

Please Log in or Create an account to join the conversation.

  • kruptos
  • kruptos
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #62461 by kruptos
Replied by kruptos on topic Re:Realnames character encoding bug
I have tryed both solutions, but still I get the same strange names.

[code:1]echo "<input type='text' ".$errorstyle."name='to_name' id='input_to_name' value='"$recipname, ENT_QUOTES, $config->charset"' /> ";[/code:1]

Post edited by: kruptos, at: 2008/05/07 11:59

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum