Basic Punctuation Symbol Errors - html

I'm receiving data from my database, and I'm showing it through echo statements, but for some reason all the basic punctuation eg (',") are all returning small diamonds with Questionmarks inside of them, can someone tell me what is wrong?

It sounds like you may need to escape some of those special characters. Here is a list of escape codes that you can use:
Escape Character Codes
If using these codes doesn't work, make sure that the actual document encoding matches the UTF-8 encoding specified. This can be examined in a text editor like Notepad++.

Related

IBM Extended ASCII Characters in HTML

I'm trying to get special characters into HTML, and am not sure if this is even possible. If anyone remembers Kroz, or just about every DOS interface - there is a special set of shape characters. I'm wanting to use the single braces, double braces, shadows, and other shape characters, but I can't seem to track any of these down anywhere.
Also, will using these characters in an HTML environment present any localization concerns / will there be a required charset?
Thanks!
There is no “extended ASCII”; ASCII ends at code position 127 decimal, 7F hexadecimal. What is called “extended ASCII” is a set of mutually incompatible 8-bit encodings that contain the printable ASCII characters in the same positions as in ASCII. In your case, you seem to want to use the Code Page 437. All of its characters exist in Unicode. You can find the correspondence at
http://en.wikipedia.org/wiki/Code_page_437
which I believe to be correct in this issue; but the authoritative reference is
http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT
There are various ways to enter the characters. You can use, say, “▓” as such in HTML, if you have some way of entering it and you use UTF-8 on the page. Alternatively, you can use character references like ▓.
Yes, similar characters exist in the UTF-8 character set. These are called box drawing characters.
See: http://www.fileformat.info/info/unicode/block/box_drawing/utf8test.htm

HTML special characters for languages

Is there any way to type this word "हिन्दी中文(简体)" in html?
I see that there's codes for special characters in html for example for "العربية" العبية
But I can't find these codes for this "हिन्दी中文(简体)"
There are tools out there that can do this conversion from raw Unicode symbols to encoded HTML entities.
हिन्दी中文(简体)
Yes, you can write “हिन्दी中文(简体)” as “हिन्दी中文(简体)” in HTML. Naturally, you need a character encoding that lets you do that, primarily UTF-8, but that’s a good idea anyway.
You can write any character using a character reference like ह (for U+0939 DEVANAGARI LETTER HA, “ह”), but this increases the data size and makes the HTML code look very obscure.

Is there a need to use HTML entities when using Unicode?

I am building a website for a German client, so the text on the website will regularly contain characters like:
ä
ö
ü
ß
Is it necessary for to convert all those characters to their HTML Entities while the website uses UTF-8 character encoding everywhere?
Or maybe there's no relation between the two areas?
When (if at all) should I convert those to their HTML Entities, then?
You should convert to HTML entity or character references when:
a. you are stuck with some editor or processing component that doesn't support Unicode properly;
b. you have manually-edited markup with confusable characters. For example, if you have a non-breaking-space that is important to lay out correctly, you might want to write it as or   so that it's obvious and doesn't get replaced with a normal space when someone edits the file.
Other than that, no, just go with the raw versions.

Special characters in HTML

I am trying to retrieve specific information from a European web site. Now, the problem is I am often facing strings containing special characters such as "ä". When I try to write same into a text file it is coming as "�a". How to avoid this? My code is in VB.Net. There are no html codes for special characters in the response.
TIA!
In general, you should be able to do this by using the appropriate character coding for UTF-8 (which is what I assume you are trying to convert to)
Here is a list of HTML Codes.
Looks like the one you are wanting is:
Character Friendly Code Numerical Code Hex Code Description
ä ä ä ä Lowercase A-umlaut
Hope that helps.
I tried using WebBrowser instead of HttpRequest and Its working.

special characters in HTML problems

Although I included the ISO-8859-1 content-type META, my website isn't displaying special characters, such as ã and ê. If I 'echo' a string from a MYSQL query, the special character is displaying properly. If I write the SAME character in plain HTML, it won't display in the same website.
Thanks in advance.
http://popguest.com.br/event/index3.php?c=48&p=3
Maybe you could use a simple routine to encode all special characters to entities (&#x----; with correct hexadecimal unicode number after x)
(and switching to UTF-8 is not a bad idea)