Zen Cart Logo
Forums / General Questions / PHPBB3 / Register user nickname in utf-8 (arabic)

PHPBB3 / Register user nickname in utf-8 (arabic)

Views: 982

Results 1 to 3 of 3
26 Dec 2011, 12:55 AM
#1
haizi72g3t avatar

haizi72g3t

New Zenner

Join Date:
Nov 2011
Posts:
39
Plugin Contributions:
0

PHPBB3 / Register user nickname in utf-8 (arabic)

iv been trying to fix this issue for the past 7 days now and i cant seem to get it worked right.

iv set my whole server /php files to utf-8.
even configured apache to be utf-8

when someone is creating a new account he is required to enter forum nickname, if he enter utf-8 nickname he wont be able to login in phpbb3 and its going to show ?@#invalid charcters for him in mysql database and i have to edit it manual.

iv posted on phpbb3 forum
http://www.phpbb.com/community/viewtopic.php?f=71&t=2146668&p=13090313#p13090313

anyone have a clue what i need to do?

26 Dec 2011, 12:13 PM
#2
haizi72g3t avatar

haizi72g3t

New Zenner

Join Date:
Nov 2011
Posts:
39
Plugin Contributions:
0

Re: PHPBB3 / Register user nickname in utf-8 (arabic)

Forms
One often neglected method is ensuring that the data the server gets is UTF-8 encoded. One way to try and do this with HTML forms is to include the accept-charset attribute in your form tag. I say “try” because it’s just a suggestion to the client which submits the form. Be aware that some clients may not pay much attention to the attribute, especially older browsers. [Thanks to Alejandro for the heads up :-)]

<form action="/action" method="post" accept-charset="utf-8">

how can i add this code to be used for the entire post actions in zen cart? or perhaps on create account (forum nickname)

26 Dec 2011, 12:43 PM
#3
haizi72g3t avatar

haizi72g3t

New Zenner

Join Date:
Nov 2011
Posts:
39
Plugin Contributions:
0

Re: PHPBB3 / Register user nickname in utf-8 (arabic)

or how can i merge it in

label class="inputLabel" for="nickname"><?php echo ENTRY_NICK; ?></label>

<?php echo zen_draw_input_field('nick','','id="nickname"') . (zen_not_null(ENTRY_NICK_TEXT) ? '<span class="alert">' . ENTRY_NICK_TEXT . '</span>': ''); ?> <br class="clearBoth" />