Nome Utente: 
Password : 
Restringi sessione all'IP 
Online in 1gg

The file is different  Vai alla sfida "Training: WWW-Basics"

Posizione globale: 16693
Punteggio totale: 79
Posts : 5
Grazie: 1
Voti+: 2
Registrato: 13a 232gg
Ultima visita: 6a 186gg
L'utente è Offline
The file is different
Google/traduci1Grazie!1Bel post!0Brutto post! Link
I created the file luke92.html and wrote:
"My name is Luke92 and iChall." that is, in my language is "Il mio nome è Luke92 e iChall."

Everything works but tells me the phrase is different and has one byte less .. What is the problem?
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 18ore
L'utente è Offline
RE: The file is different
Google/traduci2Grazie!0Bel post!0Brutto post! Link
The problem should be the newline.
The challenge requires you to put no newline after the phrase.

Happy Challenging
gizmore
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 16693
Punteggio totale: 79
Posts : 5
Grazie: 1
Voti+: 2
Registrato: 13a 232gg
Ultima visita: 6a 186gg
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Citazione da Gizmore
22 Mar 2013 - 17:00:32

The problem should be the newline.
The challenge requires you to put no newline after the phrase.

Happy Challenging
gizmore

http://oi46.tinypic.com/347e1w2.jpg

I test with and without newline
Ultima modifica: Luke92 - 22 Mar 2013 - 17:08:51
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 18ore
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Looks like an encoding problem to me.
Try to output utf8 encoded data.
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 16693
Punteggio totale: 79
Posts : 5
Grazie: 1
Voti+: 2
Registrato: 13a 232gg
Ultima visita: 6a 186gg
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!1Bel post!0Brutto post! Link
Citazione da Gizmore
22 Mar 2013 - 17:11:23

Looks like an encoding problem to me.
Try to output utf8 encoded data.

My info php server report:

"""Content-Type text/html; charset=utf-8 """
Ultima modifica: Luke92 - 22 Mar 2013 - 17:30:26
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 18ore
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!1Bel post!0Brutto post! Link
i assume your server says it's utf8, but you do not send utf8 Smile
false advertising? Drool
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 16693
Punteggio totale: 79
Posts : 5
Grazie: 1
Voti+: 2
Registrato: 13a 232gg
Ultima visita: 6a 186gg
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!1Brutto post! Link
In local how i test if charset change??
i feel with 3 charset different but have every same result
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 18ore
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Changing the header does not change your bytes magically.
The header only tells the client how to interpret the bytes.
Make sure you encode the è in utf8.

Hope this helps,
gizmore
The geeks shall inherit the properties and methods of object earth.
Posizione globale: 16693
Punteggio totale: 79
Posts : 5
Grazie: 1
Voti+: 2
Registrato: 13a 232gg
Ultima visita: 6a 186gg
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!1Brutto post! Link
Citazione da Gizmore
22 Mar 2013 - 18:12:35

Changing the header does not change your bytes magically.
The header only tells the client how to interpret the bytes.
Make sure you encode the è in utf8.

Hope this helps,
gizmore

I feel all but NADA:
http://www.w3.org/International/questions/qa-html-encoding-declarations
Posizione globale: 198
Punteggio totale: 110647
Posts : 1795
Grazie: 1390
Voti+: 961
Registrato: 18a 259gg




Ultima visita: 65gg 18ore
L'utente è Offline
RE: The file is different
Google/traduci0Grazie!0Bel post!0Brutto post! Link
I am feeling NADA now too ;)

I guess the challenge is working fine and you just give the wrong bytes.
Encoding is an important topic in the IT, and i suggest you read up on Unicode and UTF8.
The geeks shall inherit the properties and methods of object earth.
Redknee, wonhee, sh4nx0r, silenttrack, n0tHappy, nonfungiblesecurity, quangntenemy, TheHiveMind, Z, balicocat, Ge0, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, fpombal, csuquvq utenti hanno sottoscritto il thread e ricevo le E-Mail di notifica.
1 persone stanno visualizzando il thread.
Questo thread è stato visualizzato 10369 volte.

PHP Fatal Error(1): Constant E_STRICT is deprecated since 8.4, the error level was removed in www/protected/config.php line 6


Backtrace starts in [unknown file] line ?. GWF_Debug::shutdown_function() core/inc/util/GWF_Debug.php line 109. GWF_Debug::error_handler().... core/inc/util/GWF_Debug.php line 180.