special-characters

What is the name of this character |

I am writing a documentation on a PHP framework. I make a lot use of this | character. It is some kind of separator, but does anyone know the exact name of it. ...

Getting XML Numbered Entities with PHP 5 DOM

Hello guys, I am new here and got a question that is tricking me all day long. I've made a PHP script, that reads a website source code through cURL, then works with DOMDocument class in order to generate a sitemap file. It is working like a charm in almost every aspect. The problem is with special characters. For compatibility reaso...

Control characters as delimiters

I have a nodejs TCP server and a client. Basic network communication happens. Client sends "data + STX_CHARACTER + data + ETX_CHARACTER" (just an example). How do I split the string using the STX Control Character as a delimiter or how do I reference the character at all in Javascript. ...

How to unescape special characters from BeautifulSoup output?

Hi, I am facing issues with the special characters like and which represent the degree Fahrenheit sign and the registered sign, when i print the string the contains the special characters, it gives output like this: Preheat oven to 350° F Welcome to Lorem Ipsum Inc® Is there a way I can output the exact characters and n...

Find the % character in a LIKE query

Hi, I've an SQL database and I would like to do a query who show all the datas containing the sign "%". Normally, to find a character (for example: "z") in a database I use a query like this : mysql_query("SELECT * FROM mytable WHERE tag LIKE '%z%'"); But here, I want to found the % character, but in SQL it's a joker so when I write:...

Characters in usernames that cause trouble

I am testing out security and reliability issues on my site. I have made \n and \r illegal. I created a user with null in the name which caused my PM system to not message the user. However \b worked and \t didnt allow copy/paste to work correctly. The browser (firefox which i am testing with) copied the tab as a single space causing the...

French characters in SQLite..how to display properly in iPhone app?

I am working on an iPhone app using a SQLite db. I have some French characters that are not rendering properly in the app - they are being displayed as squares. The character set client is: utf8. Is there an easy fix for this? ...

Facebook Like Plugin HTML Entities

I installed the new Like plugin on my Wordpress blog. I also have the Open Graph Plugin for Wordpress installed. It all works magically except that the HTML special characters are showing on my Facebook Wall when I click like. I tried preventing the Open Graph plugin from encoding the content of the mega tag in the first place by editi...

Pound symbol not displaying on web page

Hello I have a mysql database table to store country name and currency symbol - the CHARSET has correctly set to UTF8. This is example data inserted into the table insert into country ( country_name, currency_name, currency_code, currency_symbol) values ('UK','Pounds','GBP','£'); When I look in the database - the pound symbol appea...

How to turn off setting for visible special characters In outlook new email message?

Somehow I turned on the display paragraph marks, spaces, and other special characters in my outlook 2007 new email messages and I can't find a way to turn it off. I am looking for the outlook equivalent of the Word 2007 Show/Hide command that is in the paragraph section of the toolbar ribbon, whose icon in the toolbar is a paragraph mar...

Inserting data using PHP into mysql when it contains a '

Hi there, I am writing lots of info from an XML file into a database. Everything works fine until I come across a field with the ' in the description, that insertion fails with an error Error 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ...

Foreign Characters not showing up correctly in php

I am saving some foreign characters quite fine into my mysql database. This is the ones I am using right now for example: いち When I try to echo out that column from the database, it only shows up as '??' Why are there question marks showing up when I am trying to echo foreign characters? ...

Unicode replacement characters for text matching

I have some fun with unicode text sources (all correct encodet) and I want to match names. The classic problem, one source comes correctly, an other has more flatten names: "Elbląg" vs. "Elblag" (see the character a) How can I "flatten" ą, á, â or à to a for better matching? Are there unicode to ascii- matching tables? ...

In PHP when submitting strings to the DB should I take care of illegal characters using htmlspecialchars() or use regex?

I am working on a form with the possiblity for the user to use illegal/special characters in the string that is to be submitted to the database. I want to escape/negate these characters in the string and have been using htmlspecialchars(). However, I would like to know if there is a better/faster method. ...

In silverlight how do you scrub a string

I have a string that looks like this " Into" and I can't figure out what the " " value is just before the Into. It's not a space, it's not an enter. At least i don't think so. I've tried doing a replace to get rid of it.. So now i'm just trying to figure out what that character value is. Convert.int32 doesn't get it done... What ca...

Why does this regular expression fail?

I have a password validation script in PHP that checks a few different regular expressions, and throws a unique error message depending on which one fails. Here is an array of the regular expressions and the error messages that are thrown if the match fails: array( 'rule1' => array( '/^.*[\d].*$/i', 'Password must co...

How to load XML with special characters using XDocument.Load

**This is for silverlight application. I have a stream with xml data, which after loading massage the data and generate final file. I start by load using XDocument.Load(stream). One of the file was failing to load and after some research I foung out that one of the element has a value of 'First & Second' and load fails on hitting &. I...

What is a good resource for HTML character codes -> glyph and...

Hi, I've already found a good site to convert HTML character codes to their respective glyphs: http://www.public.asu.edu/~rjansen/glyph_encoding.html However, I need a bit more information. Does anyone know of a site like the one above that also provides information on what type of character code it is? Meaning, is it a special charac...

PHP - ___ encoding to UTF-8 - is there an end-all solution?

I've looked across the web, I've looked through SO, through PHP documentation and more. It seems like a ridiculous problem not to have a standard solution to. If you get an unknown character set, and it has strange characters (like english quotes), is there a standard way to convert them to UTF-8? I've seen many messy solutions using a...

SQLite/iPhone read copyright symbol

Hi All, I am having problems reading the copyright symbol from a sqlite db that I have for my App that I am developing. I import the information manually, ie, from an excel sheet. I have tried two ways of doing it and failed with both: Tried replacing the copyright symbol with "\u00ae" (unicode combination) within excel and then import...