Username: 
Password: 
Restrict session to IP 

The file is different  Go to the Training: WWW-Basics challenge

Global Rank: 10567
Totalscore: 49
Posts: 5
Thanks: 1
UpVotes: 2
Registered: 6y 155d
Last Seen: 245d 15h
The User is Offline
The file is different
Google/translate1Thank You!1Good Post!0Bad 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?
Global Rank: 235
Totalscore: 84568
Posts: 1339
Thanks: 1193
UpVotes: 705
Registered: 11y 182d




Last Seen: 1d 13h
The User is Offline
RE: The file is different
Google/translate2Thank You!0Good Post!0Bad 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.
Global Rank: 10567
Totalscore: 49
Posts: 5
Thanks: 1
UpVotes: 2
Registered: 6y 155d
Last Seen: 245d 15h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!0Bad Post! link
Quote from Gizmore
Mar 22, 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
Last edited by Luke92 - Mar 22, 2013 - 17:08:51
Global Rank: 235
Totalscore: 84568
Posts: 1339
Thanks: 1193
UpVotes: 705
Registered: 11y 182d




Last Seen: 1d 13h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!0Bad 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.
Global Rank: 10567
Totalscore: 49
Posts: 5
Thanks: 1
UpVotes: 2
Registered: 6y 155d
Last Seen: 245d 15h
The User is Offline
RE: The file is different
Google/translate0Thank You!1Good Post!0Bad Post! link
Quote from Gizmore
Mar 22, 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 """
Last edited by Luke92 - Mar 22, 2013 - 17:30:26
Global Rank: 235
Totalscore: 84568
Posts: 1339
Thanks: 1193
UpVotes: 705
Registered: 11y 182d




Last Seen: 1d 13h
The User is Offline
RE: The file is different
Google/translate0Thank You!1Good Post!0Bad 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.
Global Rank: 10567
Totalscore: 49
Posts: 5
Thanks: 1
UpVotes: 2
Registered: 6y 155d
Last Seen: 245d 15h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!1Bad Post! link
In local how i test if charset change??
i feel with 3 charset different but have every same result
Global Rank: 235
Totalscore: 84568
Posts: 1339
Thanks: 1193
UpVotes: 705
Registered: 11y 182d




Last Seen: 1d 13h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!0Bad 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.
Global Rank: 10567
Totalscore: 49
Posts: 5
Thanks: 1
UpVotes: 2
Registered: 6y 155d
Last Seen: 245d 15h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!1Bad Post! link
Quote from Gizmore
Mar 22, 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
Global Rank: 235
Totalscore: 84568
Posts: 1339
Thanks: 1193
UpVotes: 705
Registered: 11y 182d




Last Seen: 1d 13h
The User is Offline
RE: The file is different
Google/translate0Thank You!0Good Post!0Bad 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, tunelko, silenttrack, qdxy, TheHiveMind, Z, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89 have subscribed to this thread and receive emails on new posts.
1 people are watching the thread at the moment.
This thread has been viewed 7092 times.