Hongmu Notes

🧶 Native to Unicode entity conversion

Convert text to decimal character entities in both directions.

Native to Unicode entity conversion

Instructions for use

  • The text is filled in at the top and the entity is filled in at the bottom. Press the button to switch in both directions.
  • The entity is in the form of &# plus decimal code point plus semicolon. The semicolon cannot be omitted.
  • Keep non-solid parts intact during restoration

Unicode to Native

When you see a string of entities written in the source code, it is much more efficient to first restore it to readable text and then check the content.

📌 What to pay attention to when restoring

The entity must be in the form of a complete &# number and semicolon; if the semicolon is removed, the number is truncated, or a newline is inserted in the middle, the parsing will fail and the part will be left intact. Therefore, try to use the entire section when copying, and do not modify it manually.

🧭 Common uses

It is used to check the writing of entities in the web page source code and the email body, confirm the decimal code point of a certain character, convert characters that are easily changed by the editor into entity form before transmitting them, and express Chinese in a channel that only allows ASCII. It is used in conjunction with hexadecimal escape tools to cover the two most common character encoding writing forms.

🔒 Dealing with location and privacy

The conversion is completed locally in the browser. The data is not uploaded to the server or written to local storage. It is cleared when the page is refreshed. The pasted content may come from emails and internal systems. This tool does not collect or save it. If you need to post the results to an external work order, it is recommended to confirm the scope of disclosure first.

All keywords and tutorials 12

❓ FAQ

Will the non-physical parts change?
No. Text that is not in an entity is left intact.
Can it handle mixed content?
Can. Mixed arrangement of entities and ordinary text can also be restored normally.
The purpose of converting Unicode to Native
Restore the source code and the entities in the email, check whether the entities are consistent with the original text, and troubleshoot display abnormalities.