# การแก้ไฟล์ excel ที่ไม่แสดงผลภาษาไทย (ฟ้อนท์เพี้ยน)

เมื่อทำการ export ไฟล์ .csv ออกมาจากระบบแล้ว หลายครั้งที่พบว่าไฟล์ excel ดังกล่าวนั้นไม่สามารถแสดงผลภาษาไทยที่ถูกต้องออกมาได้(หรือที่เรียกกันว่าภาษาต่างดาว)

<figure><img src="/files/diG8tQ9POFn4xvXtTEAI" alt=""><figcaption><p>ตัวอย่างไฟล์ Gradebook ที่ export ออกมาแล้วชื่อ Quiz เป็นภาษาต่างดาว</p></figcaption></figure>

## วิธีการแก้ไข

เปิดโปรแกรม excel ไปที่เมนู Data -> From Text

<figure><img src="/files/eM27vwSqE4pVjFv9AxD7" alt=""><figcaption></figcaption></figure>

เลือกไฟล์ .csv ที่ต้องการแก้ไขภาษาต่างดาว เลือก File Origin เป็น 65001 Unicode (UTF-8) จะเห็นตัวอย่างในหน้าต่างที่แสดงขึ้นมา พบว่าภาษาต่างดาวถูกเปลี่ยนเป็นภาษาไทยแล้ว จากนั้นกด Load

<figure><img src="/files/EPa4K47CYPSipQt9M6Mq" alt=""><figcaption></figcaption></figure>

จะได้รับข้อมูลที่แก้ภาษาเรียบร้อยแล้วแสดงผลขึ้นมา

<figure><img src="/files/7kmRzFYP6Rd1H9JcYQXK" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**การแก้ไขภาษาต่างดาวนี้ ใช้สำหรับการแก้ไขหรืออ่านข้อมูลภายในไฟล์ดังกล่าวเท่านั้น ไม่แนะนำให้นำไปใช้ import ต่อ เนื่องจากอาจเกิดปัญหา format ไม่ตรง หรือข้อมูลภายในไฟล์อาจ Mapping กับข้อมูลในระบบไม่ได้**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmucanvas-manual/tips/error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
