Monday, 24 July 2017
php - Enforce UTF-8 charset for web server
Answer
I am trying to set UTF-8 charset for my web server. Below is the sample header I am sending.
Request Method: GET
Status Code: 401 / Unauthorized
Response header is:
Content-type: text/html; charset=UTF-8
WWW-Authenticate: Basic realm=10.102.147.190
But for different browsers I am getting different values:
IE is encoding Latin Character Small E:test as Pzp0ZXN0, chrome as 4bSHOnRlc3Q= and firefox as Bzp0ZXN0
as a result, the username is different when entered from different browsers.
I googled this quite a but, but seems setting the "charset=utf-8" is the only solution, which is not working in my case. let me know how to solve this issue.
Any help is much appreciated. Thanks in advance.
Subscribe to:
Post Comments (Atom)
casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV
In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...
-
The whole error output being: LNK2019 unresolved external symbol wWinMain referenced in function "int __cdecl __scrt_common_main_seh(vo...
-
I have come across CORS issues multiple times and can usually fix it but I want to really understand by seeing this from a MEAN stack paradi...
-
I recently used canvas to conert images to webp, using : const dataUrl = canvas.toDataURL('image/webp'); But this takes a lots of ti...
No comments:
Post a Comment