• 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

Possible bug - special characters

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

Post a reply
8 posts • Page 1 of 1

Postby hildeG » Mon Jun 23, 2008 3:59 pm

I am running my chat on a Norwegian website. This means that some of my admins have letters like Æ Ø or Å in their names.
I am not able to name these as admins in the script. When they try to use /identify, they get a failure message. However, it is perfectly possible to make them ops once they are in - by means of the /op command. WHy is this, and is there anything I can do to remedy it?
hildeG
Member
 
Posts: 20
Joined: Fri Jun 20, 2008 7:57 pm
Top

Postby OldWolf » Tue Jun 24, 2008 6:32 am

Can we see your file's contents please? :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby hildeG » Tue Jun 24, 2008 8:36 am

Yes, I'll get to it later today. Don't have the files here at the office.
hildeG
Member
 
Posts: 20
Joined: Fri Jun 20, 2008 7:57 pm
Top

Postby hildeG » Tue Jun 24, 2008 2:23 pm

Here is the file:

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5("hagEgal chat");
$params["title"] = "hagEgal chat";


$params["isadmin"] = false; // do not use it on production servers ;)

//$params["debug"] = true;
$params["theme"] = "green";
$params["language"] = "nb_NO";
$params["admins"] = array("hnnn" => "bnnnnw",

"Bxx Åxx" => "nnnnnn",
"kxxxxxn" => "nnnnnn");
$params["frozen_nick"] = true;
$params["timeout"] = 35000;
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

</head>
<body>

<div class="header">
<img src="/hagefora/templates/HagEgal/images/logo_hagegal_liten.jpg" border="0">
<img alt="logo bulle" src="style/bulle.gif" class="logo2" />


</div>


<?php $chat->printChat(); ?>

</div>

</body></html>

I have of course changed the names and password, but kept the Å to illustrate what happns.
Admin h... and k..... have no problems. However admin B.... Å.... cannot use the /identify password command. Identification fails. However, B.... Å.... can become admin by means of the /op command.
hildeG
Member
 
Posts: 20
Joined: Fri Jun 20, 2008 7:57 pm
Top

Postby OldWolf » Wed Jun 25, 2008 4:50 am

Ok, I'm going to reply with a very generic answer, because this isn't my area of knowledge... hopefully someone will follow this up with more information:

From what you've said, we know it's nothing front end related. My guess is your getting stuck in one of two areas:
1. The file your uploading is not correctly saving the character. I'll be totally honest, I don't know if this is possible or not, but you might want to check into that first. The easiest way to do that would be to add a little blurb at the top of your php file to compare a get value with the admin values your having trouble with and to echo the results. Here's a rough example of what I'm saying:
Code: Select all
if ($_GET['name_test'] === "Bxx Åxx")
{
     echo 'Match';
}
else
{
     echo 'No match';
}

I know this is crude, but it might give you a starting point.

2. Somewhere, one of the files in the core isn't using the correct character type. This one would be harder to track down.

As I mentioned, I'm almost useless in the area of character sets and language, and hopefully someone will follow up my post saying "No no no... silly man... it's this." But if not, you can at least start there and see if it helps.

OldWolf
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby cls » Wed Jun 25, 2008 11:17 am

I'm sure this is a problem with your editor, which is not working with the utf-8 character set. If I switch to iso-8859-1, save and upload the chat file, I have exactly the same problem.

If you cannot set your editor to utf-8 try the following:
Go to google, type in the username ("Bxx Åxx"), klick "search", change the character set of your browser to iso-8859-1 and then copy the string in the search field, which will be "Bxx Ã…xx". Use this for the username in your chat file.
Last edited by cls on Wed Jun 25, 2008 11:33 am, edited 1 time in total.
cls
Member
 
Posts: 57
Joined: Sat Aug 18, 2007 10:29 pm
Location: Germany
  • Website
Top

Postby hildeG » Thu Jun 26, 2008 3:36 pm

Thanks! I'll try that when I get the chat up and working again :-)
hildeG
Member
 
Posts: 20
Joined: Fri Jun 20, 2008 7:57 pm
Top

Postby hildeG » Thu Jun 26, 2008 8:05 pm

That did it. Thanks again!
Last edited by hildeG on Thu Jun 26, 2008 8:05 pm, edited 1 time in total.
hildeG
Member
 
Posts: 20
Joined: Fri Jun 20, 2008 7:57 pm
Top


Post a reply
8 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 9 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