special-characters

What is '`' character called?

[亡魂溺海] 提交于 2019-12-05 09:59:27
问题 I feel silly for asking this but it isn't like I could google this. What is the ` character called? In case it doesnt show up, it is the character used for inline code with markdown. Also, on most keyboards, it shares the key with ~ . I like all three answers so I made this a CW instead of accepting 回答1: All sorts of things, but in programming mostly the back-quote or backtick, 回答2: Grave (pronounced Grahv, not like the synonym for tomb) or Grave accent . 回答3: From the Jargon file, the prime

Special characters in XML files - processing with the DOM API

和自甴很熟 提交于 2019-12-05 08:32:44
I have a file, which is in XML format (consists just of root start and end tags, and children of the root). The text elements of the children contain the ampersand symbol &. In XML it is not allowed to have this symbol in order the document to be valid, and when I tried to process the file using the DOM API in Java and an XML parser, I obtained parsing errors. Therefore, I have replaced & with & , and I processed the file successfully: I had to extract the values of the text elements in different plain text files. When I opened these newly created text files, I expected to see & , but there

How should i pass the password(containing special chars) as commandline argument?

最后都变了- 提交于 2019-12-05 08:00:20
I have a deployment script to which i have to pass LDAP password as cmd paramater. actual password: foo\$ser"ver\\ 1 (contains three space characters: at the beginning, before 1 , and after 1 ) e.g ...bin>deployment.bat LDAPPassword= foo\$ser\"ver\\ 1 Note:There are spaces in the password as shown at the beginning. The deployment.bat calls a class to which the above parameter is passed as an argument. The problem is that the class receives 2 distinct arguments: args[0]= foo\$ser"ver\\ //The space after \\ is omitted args[1]=1 //The space before and after 1 is omitted How do I pass this

iTextSharp and special characters (slovak graphemes)

半腔热情 提交于 2019-12-05 07:45:50
I am having trouble with some special slovak characters (for example č, ň and ť). They are disappearing in the itextsharp generated pdf. From what I've been able to find, this problem has to do with encoding of my BaseFont . Currently I am using this: BaseFont.CreateFont(BaseFont.HELVETICA, iTextSharp.text.pdf.BaseFont.CP1250, BaseFont.NOT_EMBEDDED) Someone suggested that this should work: BaseFont.CreateFont(BaseFont.HELVETICA, iTextSharp.text.pdf.BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED) But it throws this exception error: System.ArgumentException was caught Message='Identity-H' is not a

XML Parsing Error: undefined entity - special characters

喜欢而已 提交于 2019-12-05 05:33:49
Why does XML display error on certain special characters and some are ok? For instance, below will create error, <?xml version="1.0" standalone="yes"?> <Customers> <Customer> <Name>Löic</Name> </Customer> </Customers> but this is ok, <?xml version="1.0" standalone="yes"?> <Customers> <Customer> <Name>&</Name> </Customer> </Customers> I convert the special character through php - htmlentities('Löic',ENT_QUOTES) by the way. How can I get around this? Thanks. EDIT: I found that it works fine if I use numeric character such as Lóic now I have to find how to use php to convert special characters

How can I get unicode characters from a URL parameter?

时光毁灭记忆、已成空白 提交于 2019-12-05 03:28:45
问题 I need to use a GET request to send JSON to my server via a JavaScript client, so I started echoing responses back to make sure nothing is lost in translation. There doesn't seem to be a problem with normal text, but as soon as I include a Unicode character of any sort (e.g. "ç") the character is encoded somehow (e.g. "\u00e7") and the return value is different from request value. My primary concern is that, A) In my Python code saves what the client intended on sending to the database

Servlet gets weird character with US International keyboard on Mac

♀尐吖头ヾ 提交于 2019-12-05 02:39:21
问题 I have a simple form where I can type some characters. These characters are sent to a servlet which does a getBytes and print the bytes. The correct UTF-8 bytes for a "ã" are -61 and -93, but I get -52 and -93. :( I tried everything to understand and fix this, but nothing worked. Everything on my machine should be UTF-8 so I suspect it has to do with the US International keyboard I have been using for 20 years. Does any smart soul have a clue from where -52 and -93 are coming from? FIXED on

Using middle-dot ASCII with proper support?

纵饮孤独 提交于 2019-12-05 01:10:48
I'm using the middle dot - · - a lot in my website. The ASCII is · , which works fine. However, there are still some problems with some users not seeing the symbol. Is there a very close but more widely supported symbol like this, or is there a way to output the symbol to ensure full support? Whether you use the actual · character or the HTML · entity, make sure ISO-8859-1 is being reported to the browser correctly, either in the charset attribute of the HTTP Content-Type response header, or in a <meta http-equiv="Content-Type" value="text/html; charset=ISO-8859-1"> tag (HTML 4 and earlier) or

Special Characters in XML

瘦欲@ 提交于 2019-12-05 00:48:10
I am creating a left navigation system utilizing xml and xsl. Everything was been going great until I tried to use a special character in my xml document. I am using » and I get th error. reason: Reference to undefined entity 'raquo'. error code: -1072898046 How do I make this work? You are trying to use an HTML entity in a non-HTML or non-XHTML document. These entities are declared in the document's Document Type Definition (DTD) . You should use the numerical Unicode version of the entity reference . For example, in the case of » you should use » Alternatively, you can define them in your

Insert special character using :before pseudo class in css

有些话、适合烂在心里 提交于 2019-12-04 22:15:57
I was toying around with the :before pseudo class in css, trying to insert a special character but the result is not what I was hoping for. Using: .read_more:before { content: "»"; margin-right: 6px; } I get the character I want, but with an  character before it and using: .read_more:before { content: "»"; margin-right: 6px; } I get the complete » on the html page. I can think of a couple of ways to solve my problem, but I was wondering what the correct syntax would be if I wanted to use the :before pseudo class. By the way, my doctype is: <!doctype html> <html lang="en"> Try specifying <meta