Gå til innhold

Lesing av språkvalget i ein nettlesar, korleis kan ein tyde innhaldet i svaret?


Anbefalte innlegg

Videoannonse
Annonse

Fra HTTP-RFCen:

 

Each language-range MAY be given an associated quality value which represents an estimate of the user's preference for the languages specified by that range. The quality value defaults to "q=1". For example,

 

Accept-Language: da, en-gb;q=0.8, en;q=0.7

 

would mean: "I prefer Danish, but will accept British English and other types of English." A language-range matches a language-tag if it exactly equals the tag, or if it exactly equals a prefix of the tag such that the first tag character following the prefix is "-". The special range "*", if present in the Accept-Language field, matches every tag not matched by any other range present in the Accept-Language field.

Les mer her http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...