php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16721 Accentuation Support
Submitted: 2002-04-21 11:49 UTC Modified: 2002-05-16 10:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: brunorothgiesser at yahoo dot com dot br Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.1.2 OS: SUSE 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: brunorothgiesser at yahoo dot com dot br
New email:
PHP Version: OS:

 

 [2002-04-21 11:49 UTC] brunorothgiesser at yahoo dot com dot br
Accentuation support is not (correctly) implemented in DOM XML functions.

I have used encoding=?ISO-8891-1? in my XML docs with text in Portuguese.

Document was parsed with xmldoc(), but accents appeared as strange characters.

Removing the encoding=?ISO-8891-1? part, xmldoc() returns NULL.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-21 11:56 UTC] brunorothgiesser at yahoo dot com dot br
Correcting my bug?s description, the encoding that I used was ISO-8859-1

This is the recommended encoding for documents in Portuguese.

Any other encoding makes xmldoc() return NULL when there are accents in the doc. With 'ISO-8859-1' document is parsed but accents become strange characters.
 [2002-05-16 10:41 UTC] chregu@php.net
The funny characters are most certainly utf8 accented characters. you can convert them back to iso-8859-1 with utf8_decode()


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 15:01:27 2025 UTC