Home Backend Development PHP Tutorial 【通译】PHP中 文字编码变换时 使用SJIS-win而非SJIS,使用eucJP-win而非EUC-JP

【通译】PHP中 文字编码变换时 使用SJIS-win而非SJIS,使用eucJP-win而非EUC-JP

Jun 13, 2016 pm 01:04 PM
iso

【翻译】PHP中 文字编码变换时 使用SJIS-win而非SJIS,使用eucJP-win而非EUC-JP
使用SJIS-win而非SJIS,使用eucJP-win而非EUC-JP
From: http://pentan.info/php/sjiswin_eucjpwin.html

在文字编码变换的指定中,如果想使用Shift_JIS,就请使用SJIS-win而不是SJIS。
如果想使用EUC-JP,就请使用eucJP-win而不是EUC-JP。

带上win,则连Windows扩展的文字,也能够顺利地变换。

除此以外,其他用途的文字编码,指定为SJIS、EUC-JP也没有关系。
PHP中可以使用的文字编码,用mb_list_encodings()可以取得编码列表。

顺便提一下,HTML中,可以指定Shift_JIS、EUC-JP(Extended Unix Code Packed Format for Japanese的别名)、
UTF-9等。

举例:PHP中可以使用的文字编码

pass
auto
wchar
byte2be
byte2le
byte4be
byte4le
BASE64
UUENCODE
HTML-ENTITIES
Quoted-Printable
7bit
8bit
UCS-4
UCS-4BE
UCS-4LE
UCS-2
UCS-2BE
UCS-2LE
UTF-32
UTF-32BE
UTF-32LE
UTF-16
UTF-16BE
UTF-16LE
UTF-8
UTF-7
UTF7-IMAP
ASCII
EUC-JP
SJIS
eucJP-win
SJIS-win
CP51932
JIS
ISO-2022-JP
ISO-2022-JP-MS
Windows-1252
ISO-8859-1
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-5
ISO-8859-6
ISO-8859-7
ISO-8859-8
ISO-8859-9
ISO-8859-10
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-16
EUC-CN
CP936
HZ
EUC-TW
BIG-5
EUC-KR
UHC
ISO-2022-KR
Windows-1251
CP866
KOI8-R
ArmSCII-8
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

You don't have permission to mount the file [FIXED] You don't have permission to mount the file [FIXED] Feb 18, 2024 pm 05:45 PM

If you encounter permission errors when mounting an ISO image, this article may help. The error message is as follows: The file cannot be loaded. You do not have permission to load the file. Fortunately, you can fix it by following some simple suggestions. Why can't my ISO file be mounted? The ISO file may be corrupted or incomplete, which may cause mounting issues. Other causes include file corruption, storage media failure, or download errors. The ISO file is sparse. Interruption from security software. The disk image is not initialized. Sorry, there was a problem loading the file. The disc image file is corrupted. Fix the error that you do not have permission to mount the file. If you receive the Unable to mount file when trying to mount an ISO image, you No permission to mount file error, please follow these suggestions: Check the file

How to convert esd to iso How to convert esd to iso Dec 06, 2023 pm 01:53 PM

How to convert esd to iso: 1. Open the "This Computer" window and find the location of the ESD file; 2. Right-click the ESD file and select "Create Virtual Disk"; 3. In the pop-up dialog box, select the ISO to be saved The folder and file name of the file; 4. Wait for the virtual disk creation process to complete. After completion, the ISO file will be saved in the specified folder; 5. If you need to use the ISO file for installation, you can use some third-party tools to burn the ISO file to a disc or create a bootable USB flash drive.

How to verify whether the input is a valid ISO 8601 time format in golang How to verify whether the input is a valid ISO 8601 time format in golang Jun 24, 2023 pm 12:21 PM

When performing time-related operations, we often need to verify whether the input time format is legal. ISO8601 is a date and time representation method developed by the International Organization for Standardization and is now widely used. In Golang, we can use the time library to perform ISO8601 time format verification. First, we need to understand the definition of ISO8601 time format. The ISO8601 time format consists of date, time and time zone, where the date and time are separated by "T", and the time zone is passed through the suffix character table

What is the function of the exe file downloaded from Win10 ISO What is the function of the exe file downloaded from Win10 ISO Jan 14, 2024 pm 02:03 PM

Many friends who have downloaded the Win10 system have found that after downloading and decompressing the official original Win10 operating system ISO file, you will see two setup.exe installation programs. What are the functions of these two files and how to use them? In fact, the main purpose It is to run the setup.exe program in the sources folder. It can be upgraded or installed, or it can be installed completely. Let's take a look at the detailed introduction below. Detailed introduction to the exe after downloading the iso in win10. Run the sources/setup.exe program to perform upgrade installation or new installation. Running the setup.exe program in the root directory can overwrite the installation and clear the original system in the installation disk! Install W

what is iso what is iso Aug 11, 2023 am 10:11 AM

ISO is the abbreviation of the International Organization for Standardization, which has formulated many international standards, including standardized specifications for various industries. In the computer field, ISO also provides a specific type of file format called ISO files. An ISO file is an image file that contains the complete disc content. It has convenient migration and backup functions, protects and maintains the integrity of the disc content, and can be used as a virtual optical drive.

How to read the ISO sensitivity of a photo using PHP and the Exif extension How to read the ISO sensitivity of a photo using PHP and the Exif extension Jul 30, 2023 pm 01:07 PM

How to use PHP and Exif extensions to read the ISO sensitivity of a photo Photography is a very popular art form, and the ISO sensitivity of a photo is one of the important factors that determine the exposure and detail of the photo. In digital cameras, the ISO sensitivity of a photo is usually stored in the photo file in the form of metadata. PHP is a popular server-side scripting language, and the Exif extension is a powerful extension for PHP that can help us read the metadata of photos, including ISO sensitivity. In this article, I

What are the methods to open iso files? What are the methods to open iso files? Jan 13, 2024 am 10:06 AM

ISO file, that is, a file with the file extension .iso format, is a file system format on a CD. Many people don’t know how to open files in this format? Then let the editor explain to you how to open the iso file. Friends who often reinstall the system know that the iso format is a disc image file format. For operating systems below win8, you need to install a third-party tool to open it. Next, let me tell you how to open the iso format file? The following is a graphic tutorial on how to open an iso format file: System File Figure-1 What is an iso file? iso, international standard optical disc file system format. A disc image file format that complies with the ISO9660 standard. The file extension is usually iso. This kind of document can

How to open CD iso file How to open CD iso file Feb 20, 2024 pm 10:06 PM

How to Open a CD ISO File With the development of technology and the popularization of digital media, the use of CD ISO files has become more and more common. ISO file is a disc image file format that can completely package and save the contents of the entire disc into one file. However, many people are confused about how to open ISO files. This article will introduce several commonly used methods to help you easily achieve the goal of opening CD ISO files. Method 1: Use virtual optical drive software Virtual optical drive software is a tool that can simulate a disc image on your computer. pass

See all articles