AM & UTF8

Scans for, and displays main/alt relations in your Guild

Moderator: PleegWat

AM & UTF8

Postby aniodon » Sun Feb 18, 2007 3:25 am

Hi there =)

I have a guildmate with an "é" on its name.
I set the ALT- as other guildmates but he is not linked to its main.
is there an encoding problem? =)

Thanks, aniodon
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

Re: AM & UTF8

Postby lesablier » Sun Feb 18, 2007 3:31 am

Hy Aniodon

if your web server as UTF8 problem, try this:

Code: Select all
/ALT-(\pL+)/i


it works only if it's suport PHP4.4/5.1

instead use :

Code: Select all
/ALT-\s([\w]+)/i


Hope this helps :)
lesablier
WR.net Journeyman
WR.net Journeyman
 
Posts: 77
Joined: Sat Jul 15, 2006 4:01 pm

AM & UTF8

Postby aniodon » Sun Feb 18, 2007 3:55 am

Hi Lesablier =)

The first one is not supported on my server :(

The second one, it does not find any relation ;(

The regex I use, with which i have this problem is : /ALT-([\w]+)/i
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

AM & UTF8

Postby PleegWat » Sun Feb 18, 2007 11:29 am

There isn't a real fix beyond the \pL one. There are some workarounds in this thread: http://www.wowroster.net/Forums/viewtopic/t=259.html
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: AM & UTF8

Postby Manu211 » Sat Apr 07, 2007 11:02 pm

I still got the Problem...

http://www.dragonlordzz.de/roster/addon ... AltMonitor

"Anwärter" is displayd as "Anwärter"
"Jäger" is "Jäger" aso...
Manu211
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Tue Aug 15, 2006 1:45 pm

AM & UTF8

Postby PleegWat » Sat Apr 07, 2007 11:10 pm

This is a weird problem. It's not the output encoding, the locale strings are fine, and it's reporting it's sent as UTF8. The problem only seems to occur in strings fetched from the DB, and only in AM. Have you been editing the code?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: AM & UTF8

Postby Manu211 » Sat Apr 07, 2007 11:33 pm

no, i didn't change anything...

but, last week I installed the roster with this addon. It worked well, only one Main with his twinks was not ok. But the names were displayed correctly.

Last day I made an update of the homepage and I must re-install roster and install it again, because the layout was wrong. now the names are incorrect.

which file fetches the strings from the database? maybe I know someone who can fix it...
Manu211
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Tue Aug 15, 2006 1:45 pm

AM & UTF8

Postby PleegWat » Sun Apr 08, 2007 1:18 am

The display part is done in altlist.php
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: AM & UTF8

Postby Lysandro » Wed Apr 11, 2007 10:25 pm

I had a look at the DB of Manu211 and the problem is that the DB contains the (encoding)error not the altlist.php.
After a closer review of the files, I think it's caused by the Gatherer Roster Addon, that modify the "update.php" and perhaps removed the encoding there. Then she or me can verify it, I will post an update here and in the thread for the other addon.
Lysandro
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Thu Oct 12, 2006 11:48 am

AM & UTF8

Postby PleegWat » Wed Apr 11, 2007 11:02 pm

Yeah, it does look like a data error. However that's weird too because it doesn't occur on the main members list, and there aren't (or shouldn't be) any relevant differences. He hasn't changed any files in his roster beside the update.php. There are some extra files that look like they're meant to replace roster files, but they don't seem to be called anywhere since none of the other files have been changed. That is, unless apache is redirecting stuff but that is needlessly complicated.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

AM & UTF8

Postby Jorodag » Thu Jun 21, 2007 1:54 am

Hi there =)

I have the same problem :
a guildmate with an "è" on its name Fènyx.
I set the ALT- as other guildmates but he is not linked to its main.

when i query the database, is name is Fènyx

Thanks, Jorodag
Jorodag
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Mon Apr 16, 2007 8:52 pm

AM & UTF8

Postby PleegWat » Thu Jun 21, 2007 6:00 am

Please, thread necromancy is frowned upon.

There are several workarounds in this thread: http://www.wowroster.net/Forums/viewtopic/t=259.html .
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to AltMonitor

Who is online

Users browsing this forum: No registered users and 1 guest

cron