1071001計算機概論作業 1071001計算機概論作業

 一、請用記事本 新增 test-A (ANSI) test-U(Unicode)test-U8(UTF-8)

    三個不同編碼的檔案

☆ 來存放A字元

(1) 比較檔案的大小?

答:一樣大(1KB)

(2) 比較檔案內容各占幾個Bytes?

答:

test-A (ANSI)

test-U(Unicode)

test-U8(UTF-8)

1Bytes

4Bytes

4Bytes

 

☆ 來存放 今天是星期一 字元 

(1) 比較檔案的大小?

答:一樣大(1KB)

(2) 比較檔案內容各占幾個Bytes?

答:

test-A (ANSI)

test-U(Unicode)

test-U8(UTF-8)

12Bytes

14Bytes

21Bytes

 

二、請用 type 指令查看test-Atest-U(Unicode)test-U8(UTF-8)三個檔案的內容, 並解釋看到的結果。

答:

test-A (ANSI)

test-U(Unicode)

test-U8(UTF-8)

今天是星期一

今天是星期一

系統找不到指定檔

 

三、請寫出Today is Monday 今天是星期一 ASCIIUnicodeUTF-8

Today is Monday

答:

(1) Today is Monday

test-A (ANSI)

test-U(Unicode)

test-U8(UTF-8)

54 00 6F 00 64 00 61 00 79 00 20 00 69 00 73 00 20 00 4D 00 6F 00 6E 00 64 00 61 00 79 00 20

54 00 6F 00 64 00 61 00 79 00 20 00 69 00 73 00 20 00 4D 00 6F 00 6E 00 64 00 61 00 79 00 20

54 6F 64 61 79 20 69 73 20 4D 6F 6E 64 61 79

(2) 今天是星期一

test-A (ANSI)

test-U(Unicode)

test-U8(UTF-8)

CA 4E 29 59 2F 66 1F 66 1F 67 00 4E

CA 4E 29 59 2F 66 1F 66 1F 67 00 4E

E4 BB 8A E5 A4 A9 E6 98 AF E6 98 9F E6 9C 9F E4 B8 80

 

四、請用word 新增 test 檔案來存放A字元

(1) 請問檔案的大小?

答:10KB

(2) 請問檔案內容占幾個Bytes?

答:10,184Bytes