這些函數的行為受 php.ini 中的設置影響。
當 mbstring 模塊可用時(shí),exif
支持用戶(hù)注釋中的 Unicode 和 JIS
字符編碼的自動(dòng)轉換。這是通過(guò)先用指定字符集將注釋解碼,把結果再用另一個(gè)符合你的
HTTP
輸出的字符集編碼來(lái)實(shí)現的。
名字 | 默認 | 可修改范圍 | 更新日志 |
---|---|---|---|
exif.encode_unicode | "ISO-8859-15" | PHP_INI_ALL | |
exif.decode_unicode_motorola | "UCS-2BE" | PHP_INI_ALL | |
exif.decode_unicode_intel | "UCS-2LE" | PHP_INI_ALL | |
exif.encode_jis | "" | PHP_INI_ALL | |
exif.decode_jis_motorola | "JIS" | PHP_INI_ALL | |
exif.decode_jis_intel | "JIS" | PHP_INI_ALL |
這是配置指令的簡(jiǎn)短說(shuō)明。
exif.encode_unicode
string
exif.encode_unicode
定義了 UNICODE
用戶(hù)注釋被處理的字符集。默認為
ISO-8859-15,可用于大多數非亞洲國家。本設置可以為空或者必須為一個(gè)
mbstring 所支持的編碼。如果為空,則使用當前 mbstring
內部使用的編碼。
exif.decode_unicode_motorola
string
exif.decode_unicode_motorola
定義了 Unicode
編碼的用戶(hù)注釋的圖像內部字符集,如果圖像是摩托羅拉字節順序(big-endian)的話(huà)。本設置不能為空但可以指定一個(gè)
mbstring 支持的編碼列表。默認為 UCS-2BE。
exif.decode_unicode_intel
string
exif.decode_unicode_intel
定義了 Unicode
編碼的用戶(hù)注釋的圖像內部字符集,如果圖像是英特爾字節順序(little-endian)的話(huà)。本設置不能為空但可以指定一個(gè)
mbstring 支持的編碼列表。默認為 UCS-2LE。
exif.encode_jis
string
exif.encode_jis
定義了 JIS
用戶(hù)注釋被處理的字符集。默認為空值,迫使函數使用當前
mbstring 使用的內部編碼。
exif.decode_jis_motorola
string
exif.decode_jis_motorola
定義了 JIS
編碼的用戶(hù)注釋的圖像內部字符集,如果圖像是摩托羅拉字節順序(big-endian)的話(huà)。本設置不能為空但可以指定一個(gè)
mbstring 支持的編碼列表。默認為 JIS。
exif.decode_jis_intel
string
exif.decode_jis_intel
定義了 JIS
編碼的用戶(hù)注釋的圖像內部字符集,如果圖像是英特爾字節順序(litle-endian)的話(huà)。本設置不能為空但可以指定一個(gè)
mbstring 支持的編碼列表。默認為 JIS。