problem language

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
almohasb
User
Posts: 5

problem language

Post 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?


danielc
User
Posts: 1599

Post 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?


almohasb
User
Posts: 5

Post 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


danielc
User
Posts: 1599

Post by danielc »

Check if [Charset] set up as utf8 in [HTML]->[General] panel .


Post Reply