how to solve operamini errors
Started on the old forum in November 2009 · view the original in the archive · old links redirect here
bijaybd wrote: opera gives error when ever a user put any spacial charactors by operamini anybody know how to solve it ?????
what?put where?
My Blog: http://jhommark.blogspot.com My Facebook: http://www.facebook.com/jhommark My Official Site: http://www.undergroundweb.tk My Community Site: http://undergroundwap.xtreemhost.com
bijaybd wrote: opera gives error when ever a user put any spacial charactors by operamini anybody know how to solve it ?????
well, i am a fan of opera but never found such problem. Or, maybe i don't understand you! I use Opera 8.65 (symbian) and its good. Or you can use some opera-mods. They are russian version, but well donne. fuzzi.wen.ru
mysterio.al - programming is a functional art
$text = str_replace("¥","y",$text);
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
bijaybd wrote: opera gives error when ever a user put any spacial charactors by operamini anybody know how to solve it ?????
try ...
$text = htmlspecialchar($text); $text = stripslashes($text);
hehehe, i thought you want to repair opera 😀
mysterio.al - programming is a functional art
oh the character encoding setting is not in utf-8 try enforcing it in your headers 🙂
bijaybd wrote: for example : in the chat if you put ¥ € ¤ Ä Æ Å Ç È Ê Ð Î £ Ö Ø Ò Õ Ñ Û Ý Þ æ ä ê then operamini get error
are u sure?operamini?mini?i don't think so..what version is it?i uses om4.2..if ur site encoding is in utf-8 and u use operamini, that chars will result into a box only..if u use iso-8891, it will result the same char..
My Blog: http://jhommark.blogspot.com My Facebook: http://www.facebook.com/jhommark My Official Site: http://www.undergroundweb.tk My Community Site: http://undergroundwap.xtreemhost.com
what ever the character encoding is set in. it is obviously set wrong for his site which is causing the errors
here is the encording =
header("Content-type: text/vnd.wap.wml; "); header("Cache-Control: no-cache, must-revalidate"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\"><wml>\n";
kiLLeR-eyEd_14 wrote: are u sure?operamini?mini?i don't think so..what version is it?i uses om4.2..if ur site encoding is in utf-8 and u use operamini, that chars will result into a box only..if u use iso-8891, it will result the same char..
wrong..❗ i use encoding UTF-8 and charset UTF-8 and everything works perfect with mini opera while ISO-8891 doesn't support ccaron, Ccaron, scaron, Scaron, zcaron, Zcaron, etc...
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
bijaybd wrote: here is the encording =
header("Content-type: text/vnd.wap.wml; "); header("Cache-Control: no-cache, must-revalidate"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\"><wml>\n";
this isn't fully correct... use this..
<?php
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Pragma: no-cache");
header("Cache-Control: no-store; no-cache; must-revalidate");
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
another thing(THIS IS VERY IMPORTANT !!) all files has to saved in UTF-8 encoding !!! else special chars simply WONT work ❗
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
i am getting this error : XML Parsing Error: not well-formed
<?php header("Content-type: text/vnd.wap.wml; charset=utf-8"); header("Pragma: no-cache"); header("Cache-Control: no-store; no-cache; must-revalidate"); echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?>
and my files are saved in utf-8 format
one more thing i added gzip function i added it in one page does it will be added to all the others pages too because when i add that in 1 page my users who use old phones saying that they are getting bad gateway message
Here is some code to get the real browser and IP rather than the opera mini browser and the 90.???.?? IP
ok i put - header("Content-type: text/vnd.wap.wml; charset=utf-8"); header("Pragma: no-cache"); header("Cache-Control: no-store; no-cache; must-revalidate"); echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; echo "<wml>";
even i used : $msg=htmlspecialchars(stripslashes(trim($msg)));
but still nothing works still opera error
but still facing opera error i am using mozilla then its showing ????? but opera error any way to solve it
If all else fails use string replacement like subzero said at start of topic:
$text = str_replace("¥","y",$text);