php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76544 header() encodes mix of chinese and latin characters
Submitted: 2018-06-29 08:21 UTC Modified: 2018-06-29 08:33 UTC
From: sr at contreforme dot ch Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 7.1.19 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 49 = ?
Subscribe to this entry?

 
 [2018-06-29 08:21 UTC] sr at contreforme dot ch
Description:
------------
Consider the following :
header("Refresh:0;url=https://xyzsite.com/content/中文");
header("Location:https://xyzsite.com/content/中文");

The "Refresh" will lead to "https://xyzsite.com/content/中文" when the "Location" will lead to correct URL.

Any idea why ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-29 08:33 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2018-06-29 08:33 UTC] requinix@php.net
You have a character encoding problem somewhere.

And Refresh is a non-standard header. Don't use it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 17:01:30 2024 UTC