special-characters

Display special characters in PHP

test.php - Using regular IDE(phpDesigner7) <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php echo "بوغاليا"; ?> </body> </html> output : ??????? test.html - Using regular IDE(phpDesigner7) <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859...

Searching Core Data when field contains ' (single quote) character

Please help because I think I'm going mad. I have a core data collection that contains many thousand records. Some of the fields in these records contain terms that have a single quote. When building the database from XML, we created two fields - a NAME field and a SORTFIELD field. The NAME field contains the full term and is used...

Android: How to add bullet symbol in TextView

I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible? Pleas help ...

JavaScript Special Characters

Possible Duplicate: What are carriage return, linefeed, and form feed? I'm still learning JavaScript, and I came across think link for escaping special characters. http://www.w3schools.com/js/js_special_characters.asp I understand the other characters, but what are carriage return, backspace, and form feed for? Are carriage ...

Help with preg_replace and special chars

Hello, I'm using the PDO class but I'm triying to remove all chars except...: function cleaner($str){ return preg_replace('/[^a-zA-Z0-9éàêïòé\,\.\']/',' ',trim($str)); } As you can see, it's a simple function, but it removes all chars éàêïòé example: cleaner('$#$<<>-//La souris a été mangée par le chat ') //returns La souris a...

Strange special character encoding error

Hi, I have a very strange character encoding error: I am sending a textfield to a script via jQuerys ajax function. Assuming I want to send the euro sign echo $string; produces € however echo base64_decode(base64_encode($string)); produces € any hints on how I could debug this problem? ...

Convert BLOB into TEXT with foreign characters

I have a blob which holds HTML in it. Some of this HTML has foreign characters (ie: æ, ø, etc). I want to convert the BLOB into TEXT. I am using latin1 for my tables and changing this is not an option. From what I can tell, if if I store the foreign characters in TEXT, it is converted into something like ASCII. But if you store it in BLO...

Send a NSString with \0

I am trying to send a string terminated with \0 to a tcp socket but it seems the \0 does never reach its destination. Using this code: NSString* s=@"<b/> \0_"; uint8_t *buf = (uint8_t *)[s UTF8String]; int resCode = [outputStream write:buf maxLength:strlen((char *)buf)]; I only seem to send @"<b/> ". Probably the \0 is seen as the ...

Website character encoding

I have a website in Turkish language. I have the text in turkish and shows well in the editor. When i publish it and view it in the browser; the term : müdürlügü shows as : m�d�rl�g� How can i avoid this? Character encoding of the site is : UTF-8 ...

Search in mysql without special symbols when mysql row with special symbols?

Search input: How to format Mysql row: How to - Format How can I find "How to - Format" if search input is "How to format"? In other words how can I search in mysql without special symbols when mysql row with special symbols? Sorry for my English and thanks for any help. ...

Microsoft Word: Change Font of Characters Missing In Default Font

I am trying to use VBA in Microsoft Word to automatize highly repetative operations on large documents. The situation is this: I have a technical text containing a lot of special characters, e.g. ❨ (U+2768) and ❩ (U+2769). The text is chiefly typeset in Cambria, but some of the special characters are not found in this font. However, I ...

how to use special characters in windows forms application/report

I need to use a special character (an exponent of two, aka ^2) in a windows forms application. I also need to use it in a Microsoft Report that is opened by this same windows forms application. Anyone know how to do this? ...

Strange character from iPhone keyboard

Hey guys, I have an iPhone app with thousands of users. Stuff they type goes into my database. I noticed an infrequent crash recently, and tracked it down to a piece of code failing when it had to deal with this character "…" (that's one character, not three dots). Obviously I need to fix my code to deal with it, but in the meantime. D...

Problems displaying/inserting special characters, MySql ASP.NET

Hello, I've got problems with special characters being inserted and displayed properly. It's an ASP.NET 3.5 application (C#) and the database is MySql. If I try to insert a special character into the database using a console app I get an error back saying 'Incorrect string value: '\x81 etc'. If I try to display them it displays for exa...

Display Pound currency sign (£) in a DataBound DropDownListItem

I need to show items like in below image. I'm using this code to bind dropdownlist. var options = (from option in _serviceOptions select new { OptionId = option.OptionId, OptionText = option.OptionText + " - " + option.Price + "&pound;/month" }).ToLi...

C# Graphics.DrawString not rendering special characters?

I'm trying to write some arbitrary text to a custom control.My code works, but when I try to draw characters such as ü, it displays an empty square where the character would be.I need this to work as I intend to support localizations.I have checked already, and Tahoma has the required characters. My code is below: string _Label = "Zurüc...

Javascript object serialisation with toSource() converts special chars to hex code - how to reverse?

If I'm converting a simple JavaScript object to a string, all special chars will be converted to hex code. function O() { this.name = "<üäö!"; } var myObject = new O(); console.log(myObject.toSource()); Result: {name:"<\xFC\xE4\xF6!"} How would I avoid this or convert all hex chars back to utf8 chars? ...

MySQL Error #1366 -- Chinese Characters Fail with big5_chinese encoding

The idea: I'm just trying to save some Chinese characters to a MySQL database. The issue: apparently, some save while others don't. I've tried to just put em in via phpMyAdmin, but when I try to save them, they turn out to be question marks "?". The query: UPDATE a9286500_chinese.chinese SET chinese = '贵' WHERE chinese.id =23 LIMIT 1 ;...

how to display underoot character in my vb6 dialog box

Hi, I need to put a underoot symbol on dialog that i am creating in vb6 and i copy √ symbol from charactar map and when i paste it on the label in the dialog box a ? appears instead of the √ symbol. Any idea what should be done? Regards ...

Special Character Issue - Rails/DB2

I have a Rails App and users are pasting certain values from MS Word. When I pasted this... Paul’s “Test2” This is what gets rendered in the app... Paul’s “Test†However, and this is the most bizarre aspect of this - this does not happen at once and I have not been able to track the specific circustances that leads to it. So a ...