• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Accentuated characters

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby pinup57 » Tue Mar 06, 2007 12:39 pm

Hi

Special characters in the username don't display correctly: for example, the French first name "Clémentine" will display as "Clm0065ntine" . I tried different encodings, no go.

They do show correctly in the chat text, but not in the username.

Thanks for any help
Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby pinup57 » Tue Mar 06, 2007 3:11 pm

Problem solved. Ignore, sorry.

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby pinup57 » Wed Mar 07, 2007 9:03 am

Hmm, spoke too soon.

If I set the nick in the parameters, special characters are not displayed correctly. If I retrieve a nick from a database, they are. If I change nick using /nick command, they are too. Also, there's difference in display between the "nick joins myroom" display and the "whoisonline" display. Example copied from actual chat:

08:46:19* Invit0000 a rejoint le Bar //anonymous login with nick="Invité" set in params

07/03/2007 08:48:20 ‹Invit00› invité //I typed in "invité", note change (2 zeros gone, but typed text is correct; the whoisonline column displays "Invit00" as well)

07/03/2007 08:49:08 * Invit00 s'appelle maintenant invité //changed nick to "invité" using command, now display is OK everywhere including the whoisonline.

My page is iso-8859-1 encoded and I set the output_encoding param accordingly. My locale is french fr_FR.

Any thoughts?

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Thu Mar 08, 2007 11:41 am

you have to encode your nickname is utf-8 when you assign it programmatically using $params['nick']
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 5 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub