Blogtrottr
批踢踢實業坊 ask 板
[請問] 位元的字串長度(中文字2byte)
May 29th 2013, 21:48

作者motomoto123 (寶先)

看板ask

標題[請問] 位元的字串長度(中文字2byte)

時間Wed May 29 21:48:27 2013

大家好 想請問一下 一個中文字是 = 2 bytes 1MB = 1024KB = 524288bytes = 262144個中文字 是這樣子算嗎 ? (姑且不算空白處及空行) 那如果一個日文字是 = 3bytes 那1MB的日文字,就是524288 / 3 = 174762個日文字(姑且不含漢字) 請問是哪邊算錯 總覺得...真的有哪麼多的字數嗎? (ASCII) 感謝各位觀閱 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.47.121.222

dearlove:中文隨便兩個偏旁抓來就是個字 電腦很難全部包進去吧 05/29 21:50

BSpowerx:純粹是1 byte (256種字) 裝不下所以要用2 bytes而已吧 05/29 21:53

BSpowerx:等一下.. 我好像搞錯原PO的問題了_A_ 05/29 21:54

newacc:1MB = 1024KB = 1048576Bytes = 524288個中文字 05/29 21:54

motomoto123:原來如此,我少算了一個KB,但真的有50萬多個字嗎? 05/29 22:02

newacc:對了好奇的話 windows的txt檔是ANSI的純文字文件,你打幾個 05/29 22:02

※ 編輯: motomoto123 來自: 114.47.121.222 (05/29 22:03)

newacc:中文字就是用多少空間,按右鍵內容可以看到幾位元組 05/29 22:03

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    bwaq5 發表在 痞客邦 留言(0) 人氣()