0

I'm building a references generator and I need to keep track of the generated references. To achieve this, I'm currently using Javascript to store a cookie containing the raw data, then a PHP page embedded on the result page takes the cookie and logs it into an HTML page, however, some characters appears like this : �. I really don't know which way to go to solve this (base64 encoding, unicode encoded characters...)

Here's the link to the website : http://louisfelixberthiaume.000webhostapp.com/source_siteweb.php

[It's in french]

I can't give you the link to the HTML page for obvious confidentiality reasons, however I'll provide a screenshot :

Generated references screenshot

  • It's not a duplicate since the problem occurs during javascript to php, not during php to mySQL. – Louis-Félix Berthiaume Dec 02 '17 at 03:01
  • It is, if you handled UTF-8 throughout from source to cookie to javascript to php to mysql and back then the characters will display fine. For us to help you must supply the code so we can see. Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it **in the question itself**. Questions without a clear problem statement are not useful to other readers. See: [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) – Lawrence Cherone Dec 02 '17 at 03:28

0 Answers0