how to solve operamini errors

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

19 replies · 833 views · started 17 years ago · 1 min read

7 participants
bijaybd Developer · 178 posts #1

opera gives error when ever a user put any spacial charactors by operamini anybody know how to solve it ?????

Mysterio Lead · 630 posts #3

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

bijaybd Developer · 178 posts #4

for example : in the chat if you put ¥ € ¤ Ä Æ Å Ç È Ê Ð Î £ Ö Ø Ò Õ Ñ Û Ý Þ æ ä ê then operamini get error

subzero Super moderator Fellow · 3,954 posts #5

$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... _______…

Guest #6

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);

Mysterio Lead · 630 posts #7

hehehe, i thought you want to repair opera 😀

mysterio.al - programming is a functional art

godzilla Developer · 119 posts #8

contact to opera mini software company lol.

if u not getting error in any other browser except opera then u having no error in ur site.

bijaybd Developer · 178 posts #9

only when some people add this from operamini all opera users get this error even the users from pc

something else Fellow · 2,296 posts #10

oh the character encoding setting is not in utf-8 try enforcing it in your headers 🙂

kiLLeR-eyEd_14 Senior · 382 posts #11

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..

something else Fellow · 2,296 posts #12

what ever the character encoding is set in. it is obviously set wrong for his site which is causing the errors

bijaybd Developer · 178 posts #13

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";

metulj Super moderator Principal · 1,726 posts #14

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ノ刀ノイリ!

metulj Super moderator Principal · 1,726 posts #15

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ノ刀ノイリ!

bijaybd Developer · 178 posts #16

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

bijaybd Developer · 178 posts #18

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

something else Fellow · 2,296 posts #19

If all else fails use string replacement like subzero said at start of topic:

$text = str_replace("¥","y",$text);

bijaybd Developer · 178 posts #20

okey i was silly i got the problem and fixed it was bcz of my database

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close