討論區主頁 » 站務意見 » Could not insert forum post | 無發表權 |
全部展開 | 前一個主題 | 下一個主題 |
發表者 | 討論內容 |
---|---|
Number5 | 發表時間: 2012-05-27 11:29 |
版主 註冊日: 2004-12-04 來自: 發表數: 1914
|
[84077]
Re: Could not insert forum post 引文:
應該是big5碼的老問題~~~~許功蓋這幾個字 http://zh.wikipedia.org/zh-hant/%E5%A4%A7%E4%BA%94%E7%A2%BC 衝碼問題 因為低位元字元中包含了程式語言、shell、script中,字串或命令常會用到的特殊字元,例如0x5C「\」、0x7C「|」等。「\」在許多用途的字串中是當作轉義符號又稱為跳脫字元,例如\n(換行)、\r(歸位)、\t(tab)、\\(\本身符號)、\"(引號)等等。而「|」在UNIX作業系統中大多當作命令管線的使用,如"ls -la | more"等等。如果在字串中有這些特殊的轉義字元,會被程式或直譯器解釋為特殊用途。但是因為是中文的原因,故無法正確解釋為上面所述的行為,因此程式可能會忽略此轉義符號或是中斷執行。若此,就違反了使用者本來要當成中文字元一部份使用的本意。[11] 在常用字如「功」(0xA55C)、「許」(0xB35C)、「蓋」(0xBB5C)、「育」(0xA87C)中時常出現,造成了許多軟體無法正確處理以Big5編碼的字串或文件。這個問題被戲謔性地人名化,稱為「許功蓋」或「許蓋功」(這三個字都有這種問題)。 一般的解決方法,是額外增加「\」的字元,因為「\\」會被解釋為「\」,所以「成功\因素」這個字串就能無誤地被程式當作「成功因素」的字串來處理。但是額外的困擾是,有些輸出功能並不會把「\」當作特殊字元看待,所以有些程式或網頁就會錯誤地常常出現在「許功蓋」這些字後面多了「\」。 |
全部展開 | 前一個主題 | 下一個主題 |
主旨: | 發表者 | 日期 |
---|---|---|
Could not insert forum post | Number5 | 2012-05-26 23:07 |
Re: Could not insert forum post | ITO | 2012-05-26 23:28 |
Re: Could not insert forum post | Number5 | 2012-05-26 23:40 |
Re: Could not insert forum post | ADI | 2012-05-27 09:58 |
Re: Could not insert forum post | collective | 2012-05-27 10:03 |
» Re: Could not insert forum post | Number5 | 2012-05-27 11:29 |
Re: Could not insert forum post | 進藤光 | 2012-05-27 14:46 |
Re: Could not insert forum post | ITO | 2012-05-29 17:43 |
Re: Could not insert forum post | 進藤光 | 2012-06-02 00:50 |
Re: Could not insert forum post | fatman | 2012-06-02 12:37 |
Re: Could not insert forum post | 進藤光 | 2012-06-02 22:43 |
Re: Could not insert forum post | fatman | 2012-06-03 19:20 |
無發表權 | |