Page 1 of 1

zend framework+smarty+UTF-8 +IE+arabic = big problem to me

Posted: Thu Mar 01, 2007 3:38 am
by the_last_tamurai
hi everybody...
I'm developing an arabic site using zend framework and smarty template system using UTF-8 encoding
the problem I faced yesterday is that Internet :x Explorer outputs my pages from (left to right) not (right to left)
as the site is arabic
although :wink: lovely firefox do it the right way ....
I tried every thing but the same problem
1- I put the meta tag in my templates
2- all my files are UTF-8.
3- When I opened my pages on a non-UTF-8 editor . I notices strange characters before php start tag ()
4- what can can I do else?

another problem invoked from above that IE complain when I try to send any data
it says headers already sent :(

Posted: Thu Mar 01, 2007 3:50 am
by malcolmboston

Code: Select all

font.thisText { 
   direction: rtl
}
:wink:

Posted: Thu Mar 01, 2007 4:08 am
by the_last_tamurai
thnx malcolmboston,

I have 2 news ,of course one is good and the other still.....
yes it's work ..the direction of text in IE becomes from right to left..
but I still cannot begin a session ....the result is

Code: Select all

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\banners\index.php:1) in C:\xampp\htdocs\banners\app\controllers\IndexController.php on line 71

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\banners\index.php:1) in C:\xampp\htdocs\banners\app\controllers\IndexController.php on line 71
ok line 1 in index.php contain the strange characters
line 71 in indexController.php contain the session_start() function in the action method

where is the error...I dont know

Posted: Thu Mar 01, 2007 7:42 am
by the_last_tamurai
ok , till we (me or any of forum member) find a solution to this problem

I decided to turn back and work with ANSI encoding :(

Posted: Thu Mar 01, 2007 7:53 am
by jmut
the_last_tamurai wrote:ok , till we (me or any of forum member) find a solution to this problem

I decided to turn back and work with ANSI encoding :(
headers already sent issue has been discussed 100 times at least. Has nothing to do with encoding you use.

Posted: Thu Mar 01, 2007 10:15 am
by Luke
Have you tried deleting the strange characters?

Posted: Thu Mar 01, 2007 10:27 am
by the_last_tamurai
sorry I forgot to use the search :oops:
but u r wrong it's 100 times , :lol: more more

Posted: Thu Mar 01, 2007 10:29 am
by the_last_tamurai
sorry ninja I didn't see ur post,
Yes , I tried but guess what happended???
yes , the file converted back to ANSI :twisted:
maybe I can find a solution to it in the search pages
thnx

Posted: Thu Mar 01, 2007 4:48 pm
by feyd
tamurai, you have private messages waiting to be read. I suggest you read them, immediately.