PDA

View Full Version : Lỗi tiếng Việt có thể do những nguyên nhân nào???


Quangthai-Optic
26-01-2009, 11:04 PM
1. Do database

* Bạn cần kiểm tra MySQL (tối thiểu: 3.23.x)
* Khi tạo database cần chọn "MySQL connection collation": utf8_general_ci

2. Do file index.php trong thư mục templates

Bạn cần vào file \templates\{your_template}\index.php và tìm xem có dòng sau chưa:

<meta [Only registered and activated users can see links]"Content-Type" content="text/html; charset=utf-8" />
Nếu chưa có hoặc o phải như vậy thì thêm dòng trên vào
3. Do file templates_css.css trong thư mục templates

Kiểm tra chỗ khai báo font-family xem có phải là các font UNICODE hay không.

VD:

font-family: Arial, Helvetica, sans-serif;
font-family: "Times New Roman", Times, serif;
font-family: "Courier New", Courier, monospace;
font-family: Verdana, Arial, Helvetica, sans-serif;

4. Do các module/component

Tìm dòng sau trong các file *.php *.xml

<meta [Only registered and activated users can see links]"Content-Type" content="text/html; charset=iso-8859-1">

thay bằng:

<meta [Only registered and activated users can see links]"Content-Type" content="text/html; charset=utf-8">
Nhưng quan trọng nhất là bạn phải chắc chắn đã cài lang-viet rồi nhé