lỗi tiếng việt - Joomla! Forum - community, help and support
mình dùng dreamweaver mx 2004, khi mình gõ tiếng việt thì vẫn được, nhưng khi save thì nó báo như thế naỳ:
"the document's current encoding can not correctly save of characters within document. may want change utf-8 or encoding supports special characters in document"
sau đó mình nhấn ok thì chữ tiếng việt chuyển thành chữ toàn dấu ? không thể đọc được.
bạn nào biết lỗi này , giúp mình với.
đại khái cái lang_viet.php của mình như sau:
// langage informations
$lang_info['language_name'] = 'vietnamienne';
$lang_info['country'] = 'vietnam';
$lang_info['charset'] = 'utf-8';
$lang_info['direction'] = 'ltr';
$lang_info['code'] = 'vn';
$lang['close window'] = 'Ðóng c?a s? này';
$lang['confirm password'] = 'xác nh?n m?t kh?u';
$lang['connection'] = 'Ðang nh?p';
$lang['connection settings'] = 'c?u hình dang nh?p';
$lang['contact webmaster'] = 'liên h? qu?n tr?';
$lang['create new account'] = 't?o tài kho?n';
$lang['created on'] = 't?o';
$lang['current password wrong'] = 'sai m?t kh?u';
.........
"the document's current encoding can not correctly save of characters within document. may want change utf-8 or encoding supports special characters in document"
sau đó mình nhấn ok thì chữ tiếng việt chuyển thành chữ toàn dấu ? không thể đọc được.
bạn nào biết lỗi này , giúp mình với.
đại khái cái lang_viet.php của mình như sau:
// langage informations
$lang_info['language_name'] = 'vietnamienne';
$lang_info['country'] = 'vietnam';
$lang_info['charset'] = 'utf-8';
$lang_info['direction'] = 'ltr';
$lang_info['code'] = 'vn';
$lang['close window'] = 'Ðóng c?a s? này';
$lang['confirm password'] = 'xác nh?n m?t kh?u';
$lang['connection'] = 'Ðang nh?p';
$lang['connection settings'] = 'c?u hình dang nh?p';
$lang['contact webmaster'] = 'liên h? qu?n tr?';
$lang['create new account'] = 't?o tài kho?n';
$lang['created on'] = 't?o';
$lang['current password wrong'] = 'sai m?t kh?u';
.........
Đối với file riêng lẻ bạn cần thêm đoạn mã sau vào đầu mỗi trang
nếu muốn mặc định khi tạo một file mới đều có encoding=utf-8, bạn vào menu
view --> preferences... --> new document (bảng bên trái) --> default encoding (bảng bên phải): chọn utf-8 nhấn ok.
bạn có thể vào và search: "utf-8"
code: select all
<meta http-equiv="content-type" content="text/html; charset=utf-8" />nếu muốn mặc định khi tạo một file mới đều có encoding=utf-8, bạn vào menu
view --> preferences... --> new document (bảng bên trái) --> default encoding (bảng bên phải): chọn utf-8 nhấn ok.
bạn có thể vào và search: "utf-8"
Comments
Post a Comment