I'm using javascript and nodeJS for a page I'm building
I store cookies using this line in my JS file:
document.cookie = cname + "=" + cvalue + ";" + expires;
The value is mostly in Hebrew characters.
The cookie is stored correctly and is readable when I check it on the browser. Then I fetch the data to display it on the next page, and the Hebrew characters are not readable.
When I check the req. headers using:
router.get('/order', function(req, res){
console.log(req.headers.cookie);
I see that all the Hebrew characters turned to something like ×§××§×ס ×שק×××
How can I display them correctly on the HTML page?
note that in the head tag of my html file I use:
<meta charset="UTF-8">
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"/>