Hi,
I have many problems with accented characters.
When i list the API, all is ok and when I import datas on my php page , accented characters are missing.
However my pages are encoded with utf-8.
What's wrong ?
Thanks for the help
Michel
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 🇧🇷 pt-BR
on September 25, 2022 at 11:45 AM
Maybe this link will help.
https://stackoverflow.com/questions/17624909/how-to-convert-accented-chars-to-html-in-php
https://dev.to/bdelespierre/convert-accentuated-character-to-their-ascii-equivalent-in-php-3kf1
Reply by InfosCine.com
on September 25, 2022 at 9:14 PM
You didn't understood my question. I wrote "characters are missing". How can you handle a letter that doesn't existing ? For the overviews in french, accentued letters are totally missing (they are not only unaccentued). For the url of the API, i used the parameter "language=fr-FR" mais for example for the word "année", the word displayed by the api is not "annee" but "anne" (the "é" letter disappeared)
Reply by ticao2 🇧🇷 pt-BR
on September 26, 2022 at 9:50 AM
When you say in your first text
I understand that the data received from our server is correct.
All accented letters are there. Am I right ?
If I'm right then the problem is in PHP.
In this case, it is better to ask someone who knows the language for help.
Our admin Travis Bell always suggests seeking help from:
https://stackoverflow.com/tags/themoviedb-api
Reply by InfosCine.com
on September 26, 2022 at 11:47 AM
The datas are there when i load the api address in my browser. When i recover the datas in my foreach loop accented letters are not there (these letters are absent). As I told you as example for the word 'année' (which mean year), I don't receive année, i don't receive annee but anne (the letter is totally removed)
Reply by ticao2 🇧🇷 pt-BR
on September 26, 2022 at 2:32 PM
So the TMDb server is sending the correct data.
That's why I suggested looking for help at https://stackoverflow.com/tags/themoviedb-api
We don't have the expertise to help in all programming languages.
Reply by InfosCine.com
on September 26, 2022 at 2:51 PM
After thinking, it comes from my php loop maybe. A developer suggested me to use of a regular expression. I sent him a message to know. Sorry if it comes from that