Grandt / PHPePub

PHP Classes for dynamically generating EPub files.
http://www.phpclasses.org/package/6115
241 stars 83 forks source link

I can't encode chinese #5

Closed chaoticjoy closed 12 years ago

chaoticjoy commented 12 years ago

How can i change the languge.

Grandt commented 12 years ago

Hi

I'll be needing a little more than that I'm afraid. Which parts are you trying to encode in Chinese?

I can say up front that the file names given to the chapters and files in the book (not the chapters names) must be in ASCII, Not only doesn't my Zip implementation support international characters in the file names, but if I recall, neither does the ePub standard.

chaoticjoy commented 12 years ago

It's my fault, it works well when i change the epub reader. Thanks for your reply.

Grandt commented 12 years ago

Which reader didn't it work on? And can you build a sample file that I can have a look at to see if I am perhaps having something to improve?

Cheers A.Grandt

chaoticjoy commented 12 years ago

The reader can be download here http://ishare.iask.sina.com.cn/f/11648904.html

You can add any chinese character ,such as "测试".The reader shows “??”.

Grandt commented 12 years ago

Sounds to me like it (the reader) is not obeying the character set instructions in the XHTML. Which should always be UTF-8 if possible by the way.

chaoticjoy commented 12 years ago

It should be as you say.Thank for your PHPePub lib .I use it to send news daily to my kindle.

Grandt commented 12 years ago

You are welcome :)

Enjoy the weekend.