<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress Support Forums Topic: Accents in username</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress Support Forums Topic: Accents in username</description>
<language>en</language>
<pubDate>Sat, 10 Jan 2009 00:31:00 +0000</pubDate>

<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19522</link>
<pubDate>Sun, 28 Sep 2008 04:04:30 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19522@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Will it be possible to upgrade to 1.0 when there're people registering with utf8 usernames?&#60;br /&#62;
(I'm still testing and editing with 0.9, and will need utf8 names)&#60;br /&#62;
Or will it be better to use 1.0 alpha?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19511</link>
<pubDate>Sat, 27 Sep 2008 13:24:17 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19511@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Great!
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19506</link>
<pubDate>Sat, 27 Sep 2008 09:44:11 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19506@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;it works! =p thanks ;)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19496</link>
<pubDate>Sat, 27 Sep 2008 07:39:21 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19496@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@ meitershaker&#60;/p&#62;
&#60;p&#62;There was a bug in the display name implementation. First, update to the very latest trunk. There is a chance that you might have a user meta item for some users called 'display_name'. This will be stomping on the real setting in the user table. Use this SQL query to clear out the bad data.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;DELETE FROM bb_usermeta WHERE meta_key = &#38;#39;display_name&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Once you've updated to the latest trunk and done that, you should be able to use any UTF-8 character in display names.
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19448</link>
<pubDate>Thu, 25 Sep 2008 13:47:50 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19448@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@ sam&#60;br /&#62;
&#34;In any case, the solution in the future is to change your display name after registration. Display names are UTF-8 friendly. &#34;&#60;/p&#62;
&#60;p&#62;doesn't work!! &#60;/p&#62;
&#60;p&#62;me, 2 weeks ago:&#60;br /&#62;
&#34;but for choose a name to display on public (option in profil), a name with accents doesn't work ... &#34;
&#60;/p&#62;</description>
</item>
<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19447</link>
<pubDate>Thu, 25 Sep 2008 13:30:07 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19447@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for reply.&#60;br /&#62;
Me, I personally don't mind using alphabet for username, but have to think of target audience. Got me worried a bit.  :)&#60;/p&#62;
&#60;p&#62;I hope in the future version there's some sort of conversion mechanism for people that's already registered using utf-8 encoded username. (pretty please..)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19432</link>
<pubDate>Thu, 25 Sep 2008 00:45:13 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19432@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;@myu&#60;/p&#62;
&#60;p&#62;It has to do with people using different character encoding for their database tables other than UTF-8. I'm probably overstating the threat as the same problem exists on all data input and we filter it out the problem there. I was also just reviewing WordPress injection attacks of days gone by, so it was on my mind.&#60;/p&#62;
&#60;p&#62;In any case, the solution in the future is to change your display name after registration. Display names are UTF-8 friendly.
&#60;/p&#62;</description>
</item>
<item>
<title>myu on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19401</link>
<pubDate>Tue, 23 Sep 2008 14:23:37 +0000</pubDate>
<dc:creator>myu</dc:creator>
<guid isPermaLink="false">19401@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;sambauers,&#60;br /&#62;
may I ask why non-ascii chars for user name can make the threats of SQL injection etc greater?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19400</link>
<pubDate>Tue, 23 Sep 2008 11:39:21 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19400@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It should be noted that using non ascii characters in bbPress is not supported and you could open yourself to a whole range of potential SQL injection threats by doing so.&#60;/p&#62;
&#60;p&#62;WordPress has never supported non-ascii characters in usernames and has compensated by allowing display names, bbPress 1.0 now allows display names as well for the same reason.
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19381</link>
<pubDate>Mon, 22 Sep 2008 14:37:49 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19381@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;my problem is already here :( little help please :p
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19135</link>
<pubDate>Wed, 10 Sep 2008 14:06:56 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19135@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;meitershaker: ;-) be patient!!
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19051</link>
<pubDate>Sun, 07 Sep 2008 17:45:25 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19051@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;amir: yes :p&#60;/p&#62;
&#60;p&#62;ps: et plus précisément de la 1.0 trunk :p
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19050</link>
<pubDate>Sun, 07 Sep 2008 17:41:53 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19050@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;meitershaker : are you talking about the 1.0 alpha ?
&#60;/p&#62;</description>
</item>
<item>
<title>meitershaker on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19039</link>
<pubDate>Sun, 07 Sep 2008 11:10:46 +0000</pubDate>
<dc:creator>meitershaker</dc:creator>
<guid isPermaLink="false">19039@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;great it works! but for choose a name to display on public (option in profil), a name with accents doesn't work ...
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19037</link>
<pubDate>Sun, 07 Sep 2008 08:52:46 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19037@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for your replies. After reading / testing your links, I found a quick working fix. Here's the plugin code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: UTF-8 usernames
Plugin URI:
Description: This plugin enable utf-8 characters in usernames. Mbstring must be enabled in the php.ini.
Author: Amir Habibi
Author URI: &#60;a href=&#34;http://www.residence-mixte.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.residence-mixte.com/&#60;/a&#62;
Version: 0.1
*/ 

function sanitize_user_mbstring( $raw_username, $username, $strict = false ) {
	$raw_username = $username;
	$username = strip_tags($username);
	// Kill octets
	$username = preg_replace(&#38;#39;&#124;%([a-fA-F0-9][a-fA-F0-9])&#124;&#38;#39;, &#38;#39;&#38;#39;, $username);
	$username = preg_replace(&#38;#39;/&#38;#38;.+?;/&#38;#39;, &#38;#39;&#38;#39;, $username); // Kill entities

	// Usage of &#38;#39;mb_ereg_replace&#38;#39; instead of &#38;#39;preg_replace&#38;#39; to preserve accents.
	if ( $strict )
		$username = mb_ereg_replace(&#38;#39;&#124;[^a-z0-9 _.\-@]&#124;i&#38;#39;, &#38;#39;&#38;#39;, $username);

	return apply_filters(&#38;#39;sanitize_user_mbstring&#38;#39;, $username, $raw_username, $strict);

}

add_action(&#38;#39;sanitize_user&#38;#39;, &#38;#39;sanitize_user_mbstring&#38;#39;, 0, 3);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To work, you must have mstring enabled in your php.ini.&#60;/p&#62;
&#60;p&#62;Hope this will help !&#60;/p&#62;
&#60;p&#62;chrishajer : our board is in french
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19031</link>
<pubDate>Sun, 07 Sep 2008 05:24:58 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">19031@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There's also plugins like this which can easily be modified:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.ru/files/plugins/CyrNickname.zip&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.ru/files/plugins/CyrNickname.zip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/attachment/ticket/452/usernames_i18n_fix.php&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/attachment/ticket/452/usernames_i18n_fix.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19030</link>
<pubDate>Sun, 07 Sep 2008 05:17:24 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">19030@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This is the latest discussion I heard about the issue:&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What is the primary language of your forum?
&#60;/p&#62;</description>
</item>
<item>
<title>amirhabibi on "Accents in username"</title>
<link>http://bbpress.org/forums/topic/accents-in-username#post-19020</link>
<pubDate>Sat, 06 Sep 2008 21:04:32 +0000</pubDate>
<dc:creator>amirhabibi</dc:creator>
<guid isPermaLink="false">19020@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi! When you try to register a name containing accents, the accents are stripped.&#60;br /&#62;
Any solution ?&#60;br /&#62;
(0.9.0.2 &#38;#38; the bug is visible on this forum)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
