Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 4 Question 88 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 88
Topic #: 4
[All 200-710 Questions]

Given a php.ini setting of

default_charset = utf-8

what will the following code print in the browser?

header('Content-Type: text/html; charset=iso-8859-1');

echo '✂✔✝';

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Edelmira
2 months ago
I'm going with B. The header function clearly specifies ISO-8859-1, so the Unicode characters should display correctly. Easy peasy!
upvoted 0 times
Mignon
20 days ago
User4: Easy peasy!
upvoted 0 times
...
Emiko
21 days ago
User3: So, the Unicode characters should display correctly.
upvoted 0 times
...
Peggie
30 days ago
User2: I agree, the header function specifies ISO-8859-1.
upvoted 0 times
...
Evangelina
1 months ago
User1: I think it will display three Unicode characters.
upvoted 0 times
...
...
Serita
2 months ago
Woah, this question is really testing our understanding of character encoding. I hope the exam has more questions about emojis and cat pictures, that would be much easier!
upvoted 0 times
...
Cheryl
2 months ago
Hold on, isn't the PHP.ini setting of 'default_charset = utf-8' just a default? Wouldn't the 'header()' function take precedence and override that?
upvoted 0 times
Kerry
19 days ago
B) The 'header()' function will override the default charset setting
upvoted 0 times
...
Sabina
20 days ago
B) ✂✔✝
upvoted 0 times
...
Nieves
21 days ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
...
Alethea
3 months ago
Hmm, I'm not sure. Wouldn't the charset mismatch cause a blank line? The browser might not know how to handle the Unicode characters.
upvoted 0 times
Kristian
2 months ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
Winfred
2 months ago
B) ✂✔✝
upvoted 0 times
...
Eun
2 months ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
...
Lorriane
3 months ago
The output will definitely be the three Unicode characters, regardless of the browser. That's the correct answer, right?
upvoted 0 times
Lindsay
27 days ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
Miss
29 days ago
The output will definitely be the three Unicode characters, regardless of the browser. That's the correct answer, right?
upvoted 0 times
...
Ena
30 days ago
B) ✂✔✝
upvoted 0 times
...
Ronnie
1 months ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
Maryann
1 months ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
Carlota
2 months ago
B) ✂✔✝
upvoted 0 times
...
Torie
2 months ago
A) Three Unicode characters, or unreadable text, depending on the browser
upvoted 0 times
...
...
Renay
3 months ago
I agree with Rickie, it might not display correctly because of the charset difference.
upvoted 0 times
...
Rickie
3 months ago
I believe it will show unreadable text due to charset mismatch.
upvoted 0 times
...
Whitley
4 months ago
I think it will print three Unicode characters.
upvoted 0 times
...

Save Cancel