Skip to main content
Inspiring
June 25, 2021
Answered

Textes avec accents - Texts with accents

  • June 25, 2021
  • 1 reply
  • 594 views

Bonjour,

Que ce soit en français ou dans d'autres langues, les accents posent un problème.

Je passe par :

<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">

mais existe-t-il une autre définition pour ne pas passer par un parser ... qui marche mal.

Merci par avance

 

Hello,

Whether in French or other languages, accents are a problem.

I go by :

<! DOCTYPE html public "- // W3C // DTD HTML 4.0 Transitional // EN">

but is there another definition not to go through a parser ... which works badly.

thanks in advance

    This topic has been closed for replies.
    Correct answer BKBK

    Do you use UTF-8?

    For example:

    1. Add the flag -Dfile.encoding=UTF-8 to the property java.args in your jvm.config file;
    2. Add the UTF-8 meta tag in the <head> section of the HTML page:
    <!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Exemple de document HTML 4.01</title>
    </head>
    <body>
    <h1>Un document en français</h1>
    <p>L'élève va à l'école et ceci est écrit en Français!</p>
    </body>
    </html>

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    June 26, 2021

    Do you use UTF-8?

    For example:

    1. Add the flag -Dfile.encoding=UTF-8 to the property java.args in your jvm.config file;
    2. Add the UTF-8 meta tag in the <head> section of the HTML page:
    <!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Exemple de document HTML 4.01</title>
    </head>
    <body>
    <h1>Un document en français</h1>
    <p>L'élève va à l'école et ceci est écrit en Français!</p>
    </body>
    </html>
    ZNBAuthor
    Inspiring
    June 28, 2021

    Bonjour,

    MERCI !!

    Mais tout en mettant :

    <!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

    en haut de mes pages, j'ai quand même de temps en temps des ? à la place des accentués ( T?l?phone ).

    Que dois-je faire ?

    Merci par avance

     

    ZNBAuthor
    Inspiring
    December 16, 2021

    Bonjour,

    Quelle est la solution ?

    Merci par avance