Page 1 of 1
problem language
Posted: Tue Jul 23, 2013 9:01 pm
by almohasb
hello
when after used phpmaker(v 10 ) and translate caption table and field to Arabic when open system in the server come message in the page because error in language at :-
Fatal error: Call to undefined function ew_ConvertFromUtf8() in C:\xampp\htdocs\demo\ewshared10.php on line 22
why and how to solved?
Re: problem language
Posted: Wed Jul 24, 2013 5:06 pm
by danielc
Please provide the code around your error line number.
Are your project set charset as utf-8? Does it mean the project is originally no error if use English language file?
Re: problem language
Posted: Thu Jul 25, 2013 4:32 am
by almohasb
yes i used UTF-8 and file language English but when translate label and recoed from English to Arabic the message to show
Notice: iconv(): Detected an illegal character in input string in C:\xampp\htdocs\demo\ewshared10.php on line 22
letter/
function ew_Convert($from, $to, $str) {
if (is_string($str) && $from != "" && $to != "" && strtoupper($from) != strtoupper($to)) {
if (function_exists("iconv")) {
return iconv($from, $to, $str);
} elseif (function_exists("mb_convert_encoding")) {
return mb_convert_encoding($str, $to, $from);
} else {
return $str;
}
} else {
return $str;
}
}
from line 19:31
Re: problem language
Posted: Thu Jul 25, 2013 11:56 am
by danielc
Check if [Charset] set up as utf8 in [HTML]->[General] panel .