Problems with Accented Characters

Combining the powers of AltMonitor and SortMembers in a sortable, alt collapsible, searchable members list
Includes an extensive API for use with other addons

Problems with Accented Characters

Postby zanix » Mon Jun 23, 2008 3:35 am

There used to be a point in the wiki, but it is now missing?

There are several workarounds, all involving replacing the \w in the regex setting by something else.

Pick one of the following:
  • Use \pL to match all Unicode characters defined as letters. This needs PHP 4.4+ or 5.1+ to work.
  • Change the locale used on your web server to one that includes accented letters as characters. Most European (non-English) locales should do this.
  • Add the special letters you use after the \w in the regex. This is the most dirty fix.


The first solution is the nicest, but it is not set as default because it requires a higher PHP version than Roster requires.

Also, please know that a special debug page is available to help configure main/alt relations. Go to 'index.php?p=guild-memberslist-debug' on your roster. This will show the main note in full, and the officer note if that's set at anything other than 'always invisible'. Mouse over the notes to see the result of regex parsing on that character on that note.
Last edited by zanix on Tue Jan 13, 2009 11:08 pm, edited 3 times in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Problems with Accented Characters

Postby tuigii » Mon Jun 23, 2008 7:30 am

zanix wrote:Pick one of the following:
  • Use \pL to match all Unicode characters defined as letters. This needs PHP 4.4+ or 5.1+ to work.

The first solution is the nicest, but it is not set as default because it requires a higher PHP version than Roster requires.


With PHP 6.xx on our doorsteps, 5.1.xx becomes more then 'needed'.
Don't quiet understand why 4.4.xx is still out there.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Problems with Accented Characters

Postby Sylna » Thu Aug 21, 2008 7:55 pm

This fix does not work in the current release, because of a line of code in the "update_hook.php". In this php-file the member name gets lower-cased by strtolower(). This function destroys the special charakters in the string $main_name.

Search for the line "$main_name = ucfirst(strtolower($main_name));" and comment it out or delete it. Now the above mentioned \pL fix should work.

But notice, that all your alt-relations have to be in the correct case now. ALT-Sylna is not equal to ALT-sylna for example.

HTH, Sylna
Sylna
 


Return to MembersList

Who is online

Users browsing this forum: No registered users and 1 guest

cron