seekts / opencc

Automatically exported from code.google.com/p/opencc
0 stars 0 forks source link

繁體系統下命令列轉換無法轉換部分簡體與日文檔名 #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the problem? How to reproduce the problem?
有何問題?如何重現問題?

在繁體系統下
opencc命令列轉換模式
無法轉換部分簡體檔名與日文檔名的檔案
附件有截圖

(因為圖形介面無法一次轉換多檔案
所以我用命令列實行批量轉換,才發現這個問題)

What version of the product are you using? On what operating system?
您在用什麼版本?在什麼平臺下?

Win7 x64 繁體中文
opencc 3.0

Please provide any additional information below.
請把附加信息寫在下面。

附件內容為
截圖兩張
有問題的檔名.txt兩個

Original issue reported on code.google.com by roy.yu...@gmail.com on 23 Mar 2012 at 3:03

GoogleCodeExporter commented 8 years ago
發現附件截圖有點問題
更新一下的附件內容

Original comment by roy.yu...@gmail.com on 23 Mar 2012 at 8:03

Attachments:

GoogleCodeExporter commented 8 years ago
這個問題是因爲,Windows下的所有函數都有ANSI和Unicode兩個版��
�……
如果在繁體中文Windows想用簡體或者日文的檔案名,那fopen要��
�成wfopen,甚至main要變成wmain……
參考:
http://www.utf8everywhere.org/

Original comment by damage3...@gmail.com on 13 Nov 2012 at 5:42

GoogleCodeExporter commented 8 years ago
您好~
我已經自學python解決了這個問題
解決方法就是
批次轉檔前自動把檔名改為純英文,避開衝突
轉檔後自動改回原檔名~

Original comment by roy.yu...@gmail.com on 16 Nov 2012 at 1:29

GoogleCodeExporter commented 8 years ago
對我們來說這依舊是一個issue……

Original comment by damage3...@gmail.com on 16 Nov 2012 at 1:34