Tagged Questions
-1
votes
1answer
10 views
Remove wierd characters in xml output
I'm trying to remove weird characters in xml output. Here's the code and output:
It seems there are encoding issues. I have tried adding and this a convert from ical to xml:
...
0
votes
1answer
101 views
NSString Convert Emojis to HTML Entities
I have an iOS app and PHP web service that take a user submitted "password" and hash it.
The problem arises when you enter an emoji:
PHP hashes the salt + 😍
iOS hashes the salt + ...
0
votes
0answers
37 views
MSSQL + PHP encoding in htmlentities()
I'm developing in PHP with MSSQL 2000 and 2012.
Some times I'm having trouble retrieving string from MSSQL and printing it in HTML.
In MSSQL, string are usually varchar. I know they aren't UTF-8, ...
4
votes
4answers
9k views
htmlentities and é (e acute)
I'm having a problem with PHP's htmlentities and the é character. I know it's some sort of encoding issue I'm just overlooking, so hopefully someone can see what I'm doing wrong.
Running a straight ...
0
votes
2answers
237 views
Struts 2 Display Issue with Spanish Text
I have a Struts 2 application which has a Spanish property file used by Struts s:text tags. However, the resulting pages in the web browser have gibberish characters in them like this:
Contraseña:
...
-1
votes
1answer
55 views
PHP: How to convert string to WINDOWS-1252 entities/characters?
I have the following string:
LONDON — Britain’s unemployment rate held steady in the three months through January, reinforcing the Bank of England’s case for keeping interest rates at a record low.
...
1
vote
1answer
39 views
htmlentities() returns nothing
When sending a string to htmlentities() a result is produced in our production environment, but in my development environment, htmlentities() produces an empty string.
$content = ...
0
votes
1answer
275 views
Should i convert every single possible character in my xhtml/html code? for both encoding iso-8859-1 vs utf?
Should i convert every single possible charcter in my xhtml/html code? for both encoding iso-8859-1 vs utf?
If yes then is there any software to convert any needed character (which should be always ...
5
votes
2answers
693 views
HTML Entities: When to Use Decimal vs. Hex
Is there a good rule of thumb for when to use decimal vs. hexadecimal notation for HTML entities?
For example, a non-breaking hyphen is written in decimal as ‑ and in hex as ‑.
...
1
vote
1answer
121 views
htmlspecialchars only works in some environments
i'm testing the exact same functionality in two different environments, one is a local development environment, and the other is a staging server. they have the exact same code.
when I do a curl ...
1
vote
3answers
2k views
HTML and character encoding vs HTML Entity
When writing an HTML document, is it acceptable to use the direct special character such as the captial letter C with a cedilla underneath as regular text: Ç or to use the HTML Entity name of this ...
2
votes
2answers
99 views
Is it possible to convert a font icon back into it's private use code?
For example, I am using fontAwesome, and I have a span that contains an icon:
written in html:
<span class="icon"></span>
though once actually rendered on the page:
...
5
votes
7answers
7k views
HTML entities and charset in IE
I am displaying html entity ✓ (a check mark: ✓) in an html document that uses iso-8859-1 for the character set.
In Firefox, it displays as a check mark. In IE, it displays as a ...
0
votes
1answer
54 views
decodify � php characters
I have a DB on utf8-bin Collation.
When I use this values I have a problem because the letter ò is display like �
I try with utf_encode() htmlentities() base_64 ma nothing.
There is a method for the ...
2
votes
2answers
73 views
HTML double left quote, htmlentities
Hi I am having trouble with a certain character in PHP. the character is “ which should return
“
but when I do
echo htmlentities('“');
I get
�
What Am I doing wrong??
0
votes
3answers
109 views
Why can't I get this entity code to display correctly in a browser?
I'm trying to code a UK Pound symbol to be written to a document by JavaScript, but it's code is not being translated and is instead displayed as entered.
See this JSBin ...
1
vote
0answers
262 views
php e-mail to-field with strange characters
I'm having trouble getting my code in PHP to send out emails to persons with special characters in their names, like é à ö.
Here's the snippet of the coding:
$firstname = ...
0
votes
1answer
4k views
Bullet “•” in XML
Similar to this question
I am consuming an XML product that has some illegal chars in it. I seriously doubt I can get them to fix the problem, but I will try. In the meantime I'd like a work-around.
...
0
votes
5answers
113 views
Encoding issue with XML
I'm having an issue where the following HTML is stored in my database:
Carer £4.20 per person<br />
And is being output to XML with DOMDocument, as follows:
$content = ...
2
votes
2answers
1k views
IE8 is not rendering some of the HTML name entities
Some HTML name entities are not rendering in IE8 and instead I can see the not rendered HTML entity! For example ş or ı.
I found a solution to use HTML number entities such as ...
1
vote
1answer
395 views
convert arabic numeric html entities to chars via PHP
I have some string with arabic encoded and ukrainian (cyrillyc) words, like this:
$string = ...
0
votes
2answers
64 views
When using UTF-8, is it better to reference character for international use using decimal or hex… and why?
When using UTF-8, which character reference is better, or more widely supported worldwide on various browsers... using decimal references or hex references?
UPDATE
For instance, for replacing ...
2
votes
1answer
327 views
Content type vs HTML encoding
I'm bulding a site and I've set its content type to use charset UTF-8. I'm also using HTML encoding for the special characters, ie: instead of having á I've got á.
Now I wonder (still ...
1
vote
1answer
646 views
Encode only non-ASCII characters to HTML entities, keeping HTML tags
I'm pulling text from a database, processing it, and uploading it as plain text to an HTML email creator. The email tool is internal to my company. It can take simple HTML tags, but it can't handle ...
0
votes
1answer
274 views
Quotes behavior in UTF-8
I am working on a HTML5 website, using UTF-8 charset.
I tried to use the (double curly quotes) “” directly on my page, but they are not appearing as they should and showing a weird character instead. ...
8
votes
4answers
3k views
Should all accented characters use html entities?
I am working with a large number of HTML files that are mostly encoded as utf-8. There are accented characters galore as many are in French. I have been converting them to HTML entities as I go, but I ...
0
votes
1answer
341 views
Converting smart quotes and other entities to exact form
I have been working with converting strings to PDFs. A typical problem that arises is the occasional 'smart quote' or other utf-8 character which becomes one or another ISO character such as –, ’, ...
2
votes
1answer
992 views
Is it better to use htmlentities when sending html emails with special characters?
I have phpmailer setup to send emails from the contact form. I have the page set to UTF-8 character encoding and specify the email encoding as UTF-8 as well within PHPMailer. This all works fine and ...
0
votes
1answer
3k views
PHP htmlentities() not working as expected
I'm having a problem with htmlentities()
$txt = "árbol";
echo $txt; // outputs: árbol
echo htmlentities($txt); // outputs: árbol (árbol)
The second echo should output árbol ...
2
votes
2answers
3k views
Java JTextPane HTML Editor UTF-8 characters encoding
I'm using JTextPane as simple html editor.
jtp=new JTextPane();
jtp.setContentType("text/html;charset=UTF-8");
jtp.setEditorKit(new HTMLEditorKit());
When I call jtp.getText() I get nice html code ...
0
votes
2answers
159 views
Multibyte characters in URL are not rendering
I have a bugging problem. For a website I made there are search engine friendly URL's generated. The only problem is there are ß-chars in the url too. Chars like ö, ï, ä, ü etc. are placed correct. ...
3
votes
1answer
99 views
How do I show non-standard characters in the address bar?
I have a bugging problem. For a website I made there are search engine friendly URL's generated. The only problem is there are ß-chars in the url too. Chars like ö, ï, ä, ü etc. are placed correct. ...
2
votes
1answer
1k views
Why does <textarea> display <> instead of <>?
Shouldn't a browser's textarea display raw text? Look at the following snaps from this post, and pay attention to the <script> tag:
1- We can see the angled brackets around the script word:
...
2
votes
3answers
2k views
Converting HTML Entities in UTF-8 to SHIFT_JIS
I am working with a website that needs to target old, Japanese mobile phones, that are not Unicode enabled. The problem is, the text for the site is saved in the database as HTML entities (ie, ...
3
votes
4answers
1k views
XML charactor encoding issues with accents
I have had the problem a few times now while working on projects and I would like to know if there's an elegant solution.
Problem
I am pulling tweets via XML from twitter and uploading them to my DB ...
1
vote
1answer
2k views
Rendering HTML symbols/entities in Chrome
is it just me, or does Chrome no longer render HTML characters such as the —? I've tried changing the DOCTYPE, changing the character encoding meta tag, changing the character encoding ...
0
votes
1answer
693 views
Ruby HTML Entity Problem
New to Ruby and am wondering how to get the following to print just the degree symbol...
require 'htmlentities'
coder = HTMLEntities.new
puts coder.decode('°')
Currently the command line ...
0
votes
2answers
76 views
Having different character formats PHP / Mysql
On my site i'm trying to get different character support for the searches, for example hebrew so something like
אייל גולן
but the thing is, when they make the search it's stored in the database ...
4
votes
2answers
4k views
HTML character entities and character encoding set
When including HTML entities in an HTML document, do the entities need to be from the same character encoding set that the document is specified to be using?
For example, if I am going to use the ...
3
votes
3answers
9k views
Encoding issue, coverting & to & for html using php
I have a url in html:
<a href="index.php?q=event&id=56&date=128">
I need to turn it into a string exactly as:
<a href="index.php?q=event&id=56&date=128">
I ...
0
votes
1answer
896 views
UTF8 charset, diacritical elements, conversion problems - and Zend Framework form escaping
I am writing a webapp in ZF and am having serious issues with UTF8. It's using multi lingual content through Zend Form and it seems that ZF heavily escapes all of these characters and basically just ...
0
votes
3answers
2k views
How to convert non-supported character to html entity in Java
Some character not support by certain charset, so below test fail. I would like to use html entity to encode ONLY those not supported character. How, in java?
public void testWriter() throws ...
2
votes
3answers
3k views
Getting the € with htmlentities
I am really trying to show what htmlentities gives me, but it doesn't give & euro; for the € character.
I am trying
echo htmlentities(htmlentities("LISBOA-VIENA DESDE 99€ TAXAS INCLUÍDAS, ...