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 #62462 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
kruptos wrote:

I have tryed both solutions, but still I get the same strange names.

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


Is that what you have entered?

There are two lines which show the username, have you changed both?

[code:1]... value='".$recipname."' />";
or
... value='".htmlentities($recipname, ENT_QUOTES, $config->charset)."' />[/code:1]
should work.

In the backend you have to set "Used charset: UTF-8" in the system tab.

Post edited by: slabbi, at: 2008/05/07 12:02

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 #62463 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
When it does not work I need admin access to the backend (hopefully with eXtplorer, so I can edit files) and to the database (e.g. via phpmyadmin).

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 #62464 by kruptos
Replied by kruptos on topic Re:Realnames character encoding bug
Yes, I have changed both of them... sorry for not being more specific!

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 #62465 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
And "value='".$recipname."' />" does not work?

This is the same mechanism as used for the selection from the userlist and this works on your system.

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 #62466 by slabbi
Replied by slabbi on topic Re:Realnames character encoding bug
I did not find any of the changes I described in my postings, so I changed
[code:1]htmlentities($recipname, ENT_QUOTES)[/code:1]
to
[code:1]htmlentities($recipname, ENT_QUOTES, $config->charset)[/code:1]
and it works, now.

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 #62468 by kruptos
Replied by kruptos on topic Re:Realnames character encoding bug
Thank you VERY much:) It works for sure!!!

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum