{"action":"created","issue":{"url":"https://api.github.com/repos/raiju/phpMobi/issues/10","repository_url":"https://api.github.com/repos/raiju/phpMobi","labels_url":"https://api.github.com/repos/raiju/phpMobi/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/raiju/phpMobi/issues/10/comments","events_url":"https://api.github.com/repos/raiju/phpMobi/issues/10/events","html_url":"https://github.com/raiju/phpMobi/issues/10","id":146577047,"number":10,"title":"存在中国汉字时生成文档会缺少内容","user":{"login":"bingool","id":15226366,"avatar_url":"https://avatars.githubusercontent.com/u/15226366?v=3","gravatar_id":"","url":"https://api.github.com/users/bingool","html_url":"https://github.com/bingool","followers_url":"https://api.github.com/users/bingool/followers","following_url":"https://api.github.com/users/bingool/following{/other_user}","gists_url":"https://api.github.com/users/bingool/gists{/gist_id}","starred_url":"https://api.github.com/users/bingool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingool/subscriptions","organizations_url":"https://api.github.com/users/bingool/orgs","repos_url":"https://api.github.com/users/bingool/repos","events_url":"https://api.github.com/users/bingool/events{/privacy}","received_events_url":"https://api.github.com/users/bingool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T10:41:09Z","updated_at":"2016-04-07T19:06:17Z","closed_at":null,"body":"当我测试生成超过2048个字节的汉字时会出现前面目录部分被吞噬的情况，后来我修改了phpMobi/RecordFactory内的mb_str_split方法后可以生成完整的书本了。\r\n我的修改如下，将mb_strlen替换成strlen。希望有大神有更好的方法解决汉字的问题。\r\n\r\n\r\n\t$split_length = ($split_length <= 0) ? 1 : $split_length;\r\n\r\n\t// $mb_strlen = mb_strlen($string, 'utf-8');\r\n\t$mb_strlen = strlen($string);\r\n\r\n\t$array = array();\r\n\r\n\tfor($i = 0; $i < $mb_strlen; $i += $split_length){\r\n\t\t// $array[] = mb_substr($string, $i, $split_length);\r\n\t\t$array[] = substr($string, $i, $split_length);\r\n\t}\r\n\r\n\treturn $array;"},"comment":{"url":"https://api.github.com/repos/raiju/phpMobi/issues/comments/207052064","html_url":"https://github.com/raiju/phpMobi/issues/10#issuecomment-207052064","issue_url":"https://api.github.com/repos/raiju/phpMobi/issues/10","id":207052064,"user":{"login":"raiju","id":806013,"avatar_url":"https://avatars.githubusercontent.com/u/806013?v=3","gravatar_id":"","url":"https://api.github.com/users/raiju","html_url":"https://github.com/raiju","followers_url":"https://api.github.com/users/raiju/followers","following_url":"https://api.github.com/users/raiju/following{/other_user}","gists_url":"https://api.github.com/users/raiju/gists{/gist_id}","starred_url":"https://api.github.com/users/raiju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiju/subscriptions","organizations_url":"https://api.github.com/users/raiju/orgs","repos_url":"https://api.github.com/users/raiju/repos","events_url":"https://api.github.com/users/raiju/events{/privacy}","received_events_url":"https://api.github.com/users/raiju/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T19:06:17Z","updated_at":"2016-04-07T19:06:17Z","body":"Also, do you have an input that breaks at the split level? That would allow me to test it better."}}