X-code.com Forum Index Welcome to X-code Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

support for international and foreign caracters.

 
Post new topic   Reply to topic    X-code.com Forum Index -> Suggestions / Feature Request
View previous topic :: View next topic  
Author Message
grunt2001c



Joined: 05 May 2008
Posts: 3

PostPosted: Mon May 05, 2008 5:57 pm    Post subject: support for international and foreign caracters. Reply with quote

error message when you try to add them to error string get converted into something like this %C3%8D%C3%B3%C3%A6%C3%AD%C3%AE+%C3%A2%C no matter how you try to save it. Unicode, KOI-8, CP1251. and so on. Sad
to be more clearer the error is with the summary bullet list. the individual label validation is working fine.
Back to top
View user's profile Send private message
Ale
Site Admin


Joined: 26 Jul 2005
Posts: 359
Location: Minsk, Belarus

PostPosted: Tue May 06, 2008 4:23 am    Post subject: Reply with quote

Hello,

I just checked this on my development PC and all works OK. I tested utf-8 and cp1251.

Can you post here your server configuration (link to phpinfo or at least php version) and your test page source?
_________________
Alexander Orlov,
Developer of VDaemon
Back to top
View user's profile Send private message Visit poster's website
grunt2001c



Joined: 05 May 2008
Posts: 3

PostPosted: Tue May 06, 2008 4:36 pm    Post subject: Reply with quote

here is the link and a test page.
http://edited.com/test.php
i have registration on this page.
i also keep getting javascript errors in IE7
http://www.edited.com/register.php?lang=rus
can you help out i've tried pasting just the code from tutorial and still keep getting same errors.


Last edited by grunt2001c on Mon Jul 07, 2008 3:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
grunt2001c



Joined: 05 May 2008
Posts: 3

PostPosted: Tue May 06, 2008 4:44 pm    Post subject: Reply with quote

i know its meesy but wanna get daemon working before cleaning up the code.
<? $page = basename(__FILE__);
include "includes/header.php";
include "includes/leftNav.php";

$state_list = array(
'AL'=>"Alabama",
'AK'=>"Alaska",
'AZ'=>"Arizona",
'AR'=>"Arkansas",
'CA'=>"California",
'CO'=>"Colorado",
'CT'=>"Connecticut",
'DE'=>"Delaware",
'DC'=>"District Of Columbia",
'FL'=>"Florida",
'GA'=>"Georgia",
'HI'=>"Hawaii",
'ID'=>"Idaho",
'IL'=>"Illinois",
'IN'=>"Indiana",
'IA'=>"Iowa",
'KS'=>"Kansas",
'KY'=>"Kentucky",
'LA'=>"Louisiana",
'ME'=>"Maine",
'MD'=>"Maryland",
'MA'=>"Massachusetts",
'MI'=>"Michigan",
'MN'=>"Minnesota",
'MS'=>"Mississippi",
'MO'=>"Missouri",
'MT'=>"Montana",
'NE'=>"Nebraska",
'NV'=>"Nevada",
'NH'=>"New Hampshire",
'NJ'=>"New Jersey",
'NM'=>"New Mexico",
'NY'=>"New York",
'NC'=>"North Carolina",
'ND'=>"North Dakota",
'OH'=>"Ohio",
'OK'=>"Oklahoma",
'OR'=>"Oregon",
'PA'=>"Pennsylvania",
'RI'=>"Rhode Island",
'SC'=>"South Carolina",
'SD'=>"South Dakota",
'TN'=>"Tennessee",
'TX'=>"Texas",
'UT'=>"Utah",
'VT'=>"Vermont",
'VA'=>"Virginia",
'WA'=>"Washington",
'WV'=>"West Virginia",
'WI'=>"Wisconsin",
'WY'=>"Wyoming",
'INT'=>"International");
$state_listRus = array(
'AL' => "Алабама",
'AK' => "Аляска",
'AZ' => "Аризона",
'AR' => "Арканзас",
'CA' => "Калифорния",
'CO' => "Колорадо",
'CT' => "Коннектикут",
'DE' => "Делавэр",
'DC' => "Округ Колумбия",
'FL' => "Флорида",
'GA' => "Джорджия",
'HI' => "Гавайи",
'ID' => "Айдахо",
'IL' => "Иллинойс",
'IN' => "Индиана",
'IA' => "Айова",
'KS' => "Канзас",
'KY' => "Кентукки",
'LA' => "Луизиана",
'ME' => "Мэн",
'MD' => "Мэриленд",
'MA' => "Массачусетс",
'MI' => "Мичиган",
'МN' => "Миннесота",
'MS' => "Миссиссипи",
'МО' => "Миссури",
'MT' => "Монтана",
'NE' => "Небраска",
'NV' => "Невада",
'NH' => "Нью-Хэмпшир",
'NJ' => "Нью-Джерси",
'NM' => "Нью-Мексико",
'NY' => "Нью-Йорк",
'NC' => "Северная Каролина",
'ND' => "Северная Дакота",
'OH' => "Огайо",
'OK' => "Оклахома",
'OR' => "Орегон",
'PA' => "Пенсильвания",
'RI' => "Род-Айленд",
'SC' => "Южная Каролина",
'SD' => "Южная Дакота",
'TN' => "Теннесси",
'TX' => "Техас",
'UT' => "Юта",
'VT' => "Вермонт",
'VA' => "Вирджиния",
'WA' => "Вашингтон",
'WV' => "Западная Вирджиния",
'WI' => "Висконсин",
'WY' => "Вайоминг",
'INT' => "За Граница");

function drawStates($state_list,$state_listRus,$lang)
{
echo "<select name='State' size='1' tabindex='6'>";
if($lang=="rus")
{
foreach($state_listRus as $key => $value)
{
if($key=="")
{
echo "<option value='".$key."' selected>".$value."</option>\n";
}
else
{
echo "<option value='".$key."'>".$value."</option>\n";
}
}
}
else
{
foreach($state_list as $key => $value)
{
if($key=="")
{
echo "<option value='".$key."' selected>".$value."</option>\n";
}
else
{
echo "<option value='".$key."'>".$value."</option>\n";
}
}
}
echo "</select>";
}
function drawYear()
{
echo "<select name='bDayYear' size='1' tabindex='14'>";
for($z=date("Y")-100;$z<=date("Y")-13;$z++)
{
if($z==(date("Y")-30))
{
echo "<option value='".$z."' selected>".$z."</option>\n";
}
else
{
echo "<option value='".$z."'>".$z."</option>\n";
}
}
echo "</select>";
}
function drawMonth()
{
echo "<select name='bDayMonth' size='1' tabindex='12'>";
for($x=1;$x<=12;$x++)
{
echo "<option value='".$x."'>".$x."</option>\n";
}
echo "</select>";
}
function drawDay()
{
echo "<select name='bDayDay' size='1' tabindex='13'>\n";
for($y=1;$y<=31;$y++)
{
echo "<option value='".$y."'>".$y."</option>\n";
}
echo "</select>";
}

?>
<style type="text/css">
<!--
.error {
color: #FF0000;
text-decoration:blink;
}
.controlerror {
background-color: #ffffdd;
border: 1px solid #AA0000;
}
-->
</style>
<div style="position:absolute;top:172px;left:220px;z-index:10;margin:1px;">

<div style="margin-top:5px;">
<form action="regSubmit.php" method="post" populate="true" runat="vdaemon" id="RegisterForm" >
<?php if($lang=="rus"){?>

<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="FirstName" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Имя:" validators="NameReqRus">Имя:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="FirstName" type="text" id="fName" tabindex="1" size="15" maxlength="20" >
<vlvalidator name="NameReqRus" type="required" control="FirstName" minlength="1" maxlength="20">
</div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="MiddleName" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Очество:" validators="MiddleNameReqRus">Очество:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="MiddleName" type="text" size="2" maxlength="1" tabindex="2">
<vlvalidator name="MiddleNameReqRus" type="required" control="MiddleName" minlength="1" maxlength="1">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="LastName" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Фамилия:" validators="LastNameReqRus">Фамилия:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="LastName" type="text" id="lName" tabindex="3" size="20" maxlength="30">
<vlvalidator name="LastNameReqRus" type="required" control="LastName" minlength="1" maxlength="30">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Адрес:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Address" type="text" size="30" maxlength="255" tabindex="4">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Город:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="City" type="text" size="15" maxlength="50" tabindex="5">
</div>
<div style="float:left;margin:1px;position:relative;">Штат:</div>
<div style="float:left;margin:1px;position:relative;"><?php drawStates($state_list,$state_listRus,$lang);?></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="ZipCode" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Индекс:" validators="ZipCodeRus">Индекс:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="ZipCode" type="text" id="zipcode" tabindex="7" size="8" maxlength="8">
<vlvalidator name="ZipCodeRus" type="format" control="ZipCode" errmsg="errorMessage" validtype="type" required="false" format="zip_us">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="PhoneNumber" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Номер Телефона:" validators="PhoneNumberRus">Номер Телефона:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="PhoneNumber" type="text" size="12" maxlength="14" tabindex="8">
<vlvalidator name="PhoneNumberRus" type="format" format="phone_us" control="PhoneNumber" required="false">
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Пожалуста внасите номер телефона в таком формате (123)456-7890.', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="E-Mail" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="E-mail:" validators="E-mailRus">E-mail:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="E-Mail" type="text" id="eMail" tabindex="9" size="20" maxlength="50" >
<vlvalidator name="E-mailRus" type="format" format="email" control="E-Mail" required="true">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="Password" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Напишите Пароль:" validators="PasswordCheckRus">Напишите Пароль:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Password" type="password" id="Password" tabindex="10" size="12" maxlength="12"/>
<vlvalidator name="PasswordCheckRus" type="compare" validtype="string" control="Password" casesensitive="true" comparecontrol="Password2" operator="e" required="true">
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Длина пароля должна быть между 8-12 букв. Он должно содержать по крайней мере одно число.', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel form="RegisterForm" for="Password2" class="cssStyle" errclass="error" cerrclass="controlerror" errtext="Напишите Пароль Ещё Раз:" validators="PasswordCheckRus">Напишите Пароль Ещё Раз:</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Password2" type="password" id="Password2" tabindex="11" size="12" maxlength="12"/>
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Длина пароля должна быть между 8-12 букв. Он должно содержать по крайней мере одно число.', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">День Рождения:</div>
<div style="float:left;margin:1px;position:relative;"><?php drawMonth();?></div>
<div style="float:left;margin:1px;position:relative;">/</div>
<div style="float:left;margin:1px;position:relative;"><?php drawDay();?></div>
<div style="float:left;margin:1px;position:relative;">/</div>
<div style="float:left;margin:1px;position:relative;"><?php drawYear(); ?></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Фотография:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="picture" type="file" size="20" tabindex="15">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<input name="reset" type="reset" value="Очистить" tabindex="16">
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Submit" type="submit" value="Зарегистрироваться" tabindex="17">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>

<?php }else{?>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="FirstName"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="First Name:"
validators="NameReqEng">First Name:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="FirstName" type="text" id="fName" tabindex="1" size="15" maxlength="20">
<vlvalidator name="NameReqEng" type="required" control="FirstName" errmsg="Need First Name" minlength="1" maxlength="20">
</div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="MiddleName"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Middle Name:"
validators="MiddleNameReqEng">Middle Name:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="MiddleName" type="text" size="4" maxlength="1" tabindex="2">
<vlvalidator name="MiddleNameReqEng" type="required" control="MiddleName" minlength="1" maxlength="1">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="LastName"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Last Name:"
validators="LastNameReqEng">Last Name:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="LastName" type="text" id="lName" tabindex="3" size="20" maxlength="30">
<vlvalidator name="LastNameReqEng" type="required" control="LastName" minlength="1" maxlength="30">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Address:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Address" type="text" size="30" maxlength="255" tabindex="4">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">City:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="City" type="text" size="15" maxlength="50" tabindex="5">
</div>
<div style="float:left;margin:1px;position:relative;">State:</div>
<div style="float:left;margin:1px;position:relative;">
<?php drawStates($state_list,$state_listRus,$lang);?>
</div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="ZipCode"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Zip Code:"
validators="ZipCodeEng">Zip Code:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="ZipCode" type="text" id="zipcode" tabindex="7" size="8" maxlength="8">
<vlvalidator name="ZipCodeEng"
type="format"
control="ZipCode"
errmsg="errorMessage"
validtype="type"
required="false"
format="zip_us"
>

</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="PhoneNumber"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Phone Number:"
validators="PhoneNumberEng">Phone Number:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="PhoneNumber" type="text" size="12" maxlength="14" tabindex="8">
<vlvalidator
name="PhoneNumberEng"
type="format"
format="phone_us"
control="PhoneNumber"
required="false"
>
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Please enter Phone Number in this Format (123)456-7890', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="E-Mail"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="E-mail:"
validators="E-mailEng">E-mail:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="E-Mail" type="text" id="eMail" tabindex="9" size="20" maxlength="50" >
<vlvalidator
name="E-mailEng"
type="format"
format="email"
control="E-Mail"
required="true"
>
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="Password"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Enter Password:"
validators="PasswordCheckEng">Enter Password:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Password" type="password" id="Password" tabindex="10" size="12" maxlength="12"/>
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Password length should be between 8-12 characters. It should contain atleast one number.', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<vllabel
form="RegisterForm"
for="Password2"
class="cssStyle"
errclass="error"
cerrclass="controlerror"
errtext="Re-Enter Password:"
validators="PasswordCheckEng">Re-Enter Password:
</vllabel>
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Password2" type="password" id="Password2" tabindex="11" size="12" maxlength="12"/>
<vlvalidator
name="PasswordCheckEng"
type="compare"
validtype="string"
control="Password"
casesensitive="true"
comparecontrol="Password2"
operator="e"
required="true"
>
</div>
<div style="float:left;margin:1px;position:relative;">
<!--<a href="#" class="hintanchor" onMouseover="showhint('Password length should be between 8-12 characters. It should contain atleast one number.', this, event, '150px')">[?]</a>-->
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Birthday:</div>
<div style="float:left;margin:1px;position:relative;"><?php drawMonth();?></div>
<div style="float:left;margin:1px;position:relative;">/</div>
<div style="float:left;margin:1px;position:relative;"><?php drawDay();?></div>
<div style="float:left;margin:1px;position:relative;">/</div>
<div style="float:left;margin:1px;position:relative;"><?php drawYear(); ?></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">Picture:</div>
<div style="float:left;margin:1px;position:relative;">
<input name="picture" type="file" size="20" tabindex="15">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>
<div style="float:left;margin:1px;position:relative;">
<input name="Clear" type="reset" value="Clear" tabindex="16">
</div>
<div style="float:left;margin:1px;position:relative;">
<input name="Submit" type="submit" value="Submit" tabindex="17">
</div>
<div style="clear:both"></div>
<div style="clear:both"></div>

<?php }?>
</form>
<?php VDEnd(); ?>
</div>
<!-- end #mainContent --></div>
<div style="clear:both"></div>
<?php include "includes/footer.php"; ?>
Back to top
View user's profile Send private message
Ale
Site Admin


Joined: 26 Jul 2005
Posts: 359
Location: Minsk, Belarus

PostPosted: Wed May 07, 2008 5:05 am    Post subject: Reply with quote

Sorry, I can't debug this. You need to clean up the code.

But at first glance you have a problem with html markup (your page starts with <style> and <script> tags) and VDaemon installation (see this link - seems it must be source of vdaemon.js).
_________________
Alexander Orlov,
Developer of VDaemon
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    X-code.com Forum Index -> Suggestions / Feature Request All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group