Closed GoogleCodeExporter closed 9 years ago
請你具體說一下錯誤是如何產生的,input是file沒有問題,char
*輸入就有問題?這個錯誤我無法重現。
0.2.0最大的改動就是取消了對iconv的依賴,重寫了encoding.c。
非常高興你可以用qt寫opencc的GUI,現在opencc缺乏一個gui。
Original comment by byvo...@gmail.com
on 25 Jun 2011 at 1:30
re-produce 方法如下
Create a new file, let say, hello.c with UTF-8 encoding
hello.c (UTF-8 encoding)
--------------
#include <stdio.h>
#include <stdlib.h>
#include "encoding.h"
int main(void) {
const char* text = "測試";
printf("%s\n", text);
printf("%s\n", ucs4_to_utf8(utf8_to_ucs4(text, -1), -1));
return 0;
}
the console will output 亂碼. However, replace enconding.h and encoding.c
with version 0.1.0, it will output normally.
Original comment by copperox...@gmail.com
on 26 Jun 2011 at 3:08
Original comment by byvo...@gmail.com
on 9 Aug 2011 at 8:58
Original issue reported on code.google.com by
copperox...@gmail.com
on 25 Jun 2011 at 12:39