开发者

Running from terminal, changes the character encoding! I think. ( UBUNTU )

I asked that question, Ubuntu Zend Framework cli securityCheck Error

and i found the problem. Actually it is not about zendframework. Because it happens doctrine too. And it doesnt happen if i run my web site from browser. The problem is as i wrote before.

My operating system using utf8 character encoding for file names. utf8-encoded file names with the php is run by the terminal gives the error. 'I' is the upper one 'ı' in my language. But php expects to be 'i'. If i change t开发者_开发知识库he file names to ASCII in php using iconv , error happens again because it cant find the location of the file at this time.

How can i run php from cli same like through apache.

PLEASE HELP ! ( thank you in advance )


May be this package (or similar) required to run php scripts as cli?


Solution is: Everytime solve your own things.

Anyway,

My linux locale is UTF-8 so i've changed it to 8859-9 locale setting. There are many place to change locale settings in ubuntu. But the easiest way to change it in /etc/default/locale.

And i am happy, it's working now.

Thank you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜