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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

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

Post 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 :(
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

Code: Select all

font.thisText { 
   direction: rtl
}
:wink:
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post 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
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post 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 :(
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Have you tried deleting the strange characters?
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post by the_last_tamurai »

sorry I forgot to use the search :oops:
but u r wrong it's 100 times , :lol: more more
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

tamurai, you have private messages waiting to be read. I suggest you read them, immediately.
Post Reply