php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12938 htmlspecialchars() which doesn't strip unicode html
Submitted: 2001-08-24 00:43 UTC Modified: 2001-08-24 12:22 UTC
From: glutnix at addict dot net dot nz Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: glutnix at addict dot net dot nz
New email:
PHP Version: OS:

 

 [2001-08-24 00:43 UTC] glutnix at addict dot net dot nz
htmlspecialchars() turns this japanese text submitted from a form:
ク&#1252: 日本語の表示テスト

into:

ク&#1252: 日本語の表示テスト

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 12:22 UTC] wez@php.net
Not a bug; & is encoded as &
Take a look at the mbstring extension and the functions there; they are documented in the "multi-byte string functions" section of the manual.

In partciular, mb_decode_numericentity will be of interest to you.

--Wez.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC