• 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

Character set issues...

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

Post a reply
3 posts • Page 1 of 1

Postby echo2me » Wed Aug 02, 2006 12:31 am

Thanks for beta4 bug fix. nick name issue is resolved.

BUT I have an another issue.

When I assign nick name as username(Korean letter), character is shown as scrambled.

How can i resolve this problem???

---

<?php

include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

require_once dirname(__FILE__)."/./phpfreechat/src/phpfreechat.class.php";

$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["title"] = "Chatting Room for DiorCafe.co.kr";

$params["nick"] = $member[mb_name]; <-- Char Set - Korean (euc_KR)

$params["theme"] = "cerutti";

$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat - diorcafe.co.kr</title>

<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>

</head>

<body>
<?php $chat->printChat(); ?>
</body>
</html>
echo2me
Member
 
Posts: 10
Joined: Tue Aug 01, 2006 1:15 pm
Top

Postby phpfreechat » Wed Aug 02, 2006 1:06 pm

You must convert your string encoding to UTF-8.
You can use the iconv php fonction to do that.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby echo2me » Wed Aug 02, 2006 1:36 pm

GOOD JOB~! I can resolve problem like this ...

$params["nick"] = iconv("euc-kr", "UTF-8", $member[mb_nick] );
echo2me
Member
 
Posts: 10
Joined: Tue Aug 01, 2006 1:15 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 21 guests

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