Questions tagged [character-entities]

45 questions
0
votes
3 answers

XSL transform an xml with character entities in element names

My xml looks like: ABC
<street>sss</street> <city>ccc</city> <state>ttt</state>
I am trying to read the element 'street'…
Lokesh
  • 119
  • 1
  • 8
0
votes
1 answer

Drupal: character entity in menu link title

I have a menu link whose link title contains a character entity (e.g. La Niña). However, Drupal isn't recognising the character entity and is further encoding the ampersand, so I'm ending up with La Ni&ntilde;a. How do I fix that?
Bobby Jack
  • 15,689
  • 15
  • 65
  • 97
0
votes
1 answer

FCL utility to convert XML named entities to numeric equivalents?

Of the FCL classes (or even using an external API) is there a utility assembly, class or members that can be plugged into a .NET application to convert all named entities to their numeric equivalents? For example, É would become É.
John K
  • 28,441
  • 31
  • 139
  • 229
0
votes
1 answer

Perl split string at character entity reference  

Quick Perl question with hopefully a simple answer. I'm trying to perform a split on a string containing non breaking spaces ( ). This is after reading in an html page using HTML::TreeBuilder::XPath and retrieving the string needed by…
dan j
  • 157
  • 1
  • 11
0
votes
1 answer

"Entity 'larr' not defined" in DocBook 5

xsltproc complains "Entity 'larr' not defined'" when I try to use a plain left arrow (←, i.e. ←) which I don't see in any of the DocBook 5 entity lists. What do I need to include to get it to work? My current XSL is:
Kev
  • 15,899
  • 15
  • 79
  • 112
0
votes
0 answers

How to read XML containing character entities using XmlUrlResolver by using Powershell

Using the following Powershell line works correctly until it gets to an XML file containing character entities: $xml = [xml] (Get-Content $file.Name) How do you read XML files using Powershell and have it resolve the character entities from the DTD…
Jeremy Odekirk
  • 594
  • 3
  • 13
0
votes
3 answers

SQL Server : replace "&" to character entities (&)

I have this sample table: Table1 Column1 ------- Hi&Hello Hello & Hi Snacks & Drinks    Hello World   Question: in SQL Server, how can I replace all the & into a character entities (&) without affecting the existing…
0
votes
0 answers

HTML entities in WordPress titles & Social Media

First, I'm not an experienced developer. In fact, most of what I do builds on hacks I find on Stackoverflow and things I learn by trial and error — you may see some ugly code ahead. What I'm trying to do is create a simple way for visitors to share…
0
votes
1 answer

HttpUtility.HtmlDecode() fails for some characters

See this code: namespace TestHtmlDecode { using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Web; [TestClass] public class TestHtmlDecode { private string Convert(string input) { return…
Maria Ines Parnisari
  • 16,584
  • 9
  • 85
  • 130
0
votes
2 answers

Using a square from the html entities inside a hr

I am styling my hr and for that,i am having this character § at the center.This is the code hr.style-eight:after { content: "§"; display: inline-block; position: relative; top: -0.7em; font-size: 1.5em; padding: 0 0.25em; background: white;…
0
votes
3 answers

Is it necessary to use character entities for quotes in HTML?

I understand the need for &, <, etc. But is " necessary? I suppose it could be useful inside tag attributes, but inside the text, outside any tag, is it necessary?
Javier
  • 4,552
  • 7
  • 36
  • 46
0
votes
4 answers

Special characters in HTML

I am creating html page for iOS,where i need to put " ♠, ♥, ♦, and ♣ ". These are the cards symbols. But since this is not normal text, the text on the iPhone is coming up as unusual text. please suggest me html code for using these symbols in my…
Shishir.bobby
  • 10,994
  • 21
  • 71
  • 100
0
votes
2 answers

Character entity for a character

I need character entity for this character ▼ I searched a lot on google but could not find. Any help is thankful in advance.
Ashwin
  • 12,081
  • 22
  • 83
  • 117
-1
votes
1 answer

What is this character?

I've found this character " ⚙ " on a webmail of a malaysian hostbut I can't find its charcater entity (like & = & = &) nowhere. Can anybody help me??
Cliff Burton
  • 3,414
  • 20
  • 33
  • 47
-2
votes
3 answers

Best way to match and catch doubly-entified character entities/references?

I'm talking about stuff like &amp; which will then render to: & when it actually should render to &. In this I asked how to match entities, but it seems that isn't really possible or realistic with regexes. What then is the best way to…
wwaawaw
  • 6,867
  • 9
  • 32
  • 42
1 2
3