Code Inspections in Internationalization
This topic lists all PhpStorm code inspections available in Internationalization.
You can toggle specific inspections or change their severity level on the page of PhpStorm settings Ctrl+Alt+S.
| Non-ASCII characters || |
This inspection warns you of the code accidentally written in the wrong encoding.
Non-ASCII characters used in the names/strings/comments or
Identifiers written in different languages (e.g. when in the variable "
myCollection" the letter
C written in Cyrillic) or
Unicode symbols used in comments or strings (e.g. long dashes and arrows in the comment "
// a → !a — please note")
| Warning |
| Lossy encoding || |
This inspection warns you of characters that the current document encoding is incapable to represent.
For example, when you are
You fix this by changing the file encoding,either by specifying the encoding directly in the file, e.g. by editing encoding= attribute in the XML prolog of XML file,or configuring the Settings|Project Settings|File Encodings.
typing international characters in a document configured to US-ASCII charset. Some characters will be lost on save.
or loading UTF-8-encoded file using ISO-8859-1 one-byte charset. Some characters will be displayed incorrectly.
| Warning |
Last modified: 20 February 2020