special-characters

Non US characters in section headers for a UITableView

I have added a section list for a simple Core Data iPhone app. I followed this so question to create it - How to use the first character as a section name but my list also contain items starting with characters outside A-Z, specially Å,Ä and Ö used here in Sweden. The problem now is that when the table view shows the section list the ...

Character encoding problem in PHP/MySQL/jQuery

Hello! I made some CMS in PHP which manipulates with data from MySQL. In my CMS, i have some input fields in which I would like to have jQuery's fancy autocomplete implemented. Basically, the idea is to create jQuery's arrays from MySQL tables... I'm working with PHP 5.3.0, MySQL 5.0.82 and Eclipse 3.4.2. My PHP project in Eclipse is UT...

Need a simple tool for analysing unicode characters

I'm surprised I can't find a simple tool for this. Basically, sometimes as a result of text munging, or using some piece of software, I end up with some text that has some troublesome characters - such as looking a lot like other characters, but being distinct from them. I'd like a tool (preferably online, javascript based) where I can p...

Input text and special characters and MySQL

I have a simple textbox in a form and I want to safely store special characters in the database after POST or GET and I use the code below. $text=mysql_real_escape_string(htmlspecialchars_decode(stripslashes(trim($_GET["text"])),ENT_QUOTES)); When I read the text from the database and put it in the text value I use the code above. ...

Unicode symbols (arrows) in Java

i want to use following symbols for buttons in my app: here my code: Button goToFirstButton = new Button("\uE318"); Button prevPageButton = new Button("\uE312"); Button nextPageButton = new Button("\uE313"); Button goToLastButton = new Button("\uE319"); and the result is It seems, that \uE318 and \uE313 are wrong. What should i ...

Can all keys be represented as a single char in c++?

I've searched around and I can't seem to find a way to represent arrow keys or the escape key as single char in c++. Is this even possible? I would expect that it would be similar to \t or \n for tab and new line respectively. Whenever I search for escaped characters, there's only ever a list of five or six well known characters. ...

problem with IN and LIKE in SQL when arguments contain special characters for a language

Hello, I’ve got such a KeyWord table (MS SQL): KeyGuid Qualifier PrimitiveKey DA7E4E27-FDE5-4D43-A365-8A789164A816 tit kirkäna EED58875-FE41-4A18-A93C-A44AA62CEEEE htit kirkänbh A0EB795E-EE23-4990-BAB9-897C93C70CE3 htit kirkänah F7F4632B-AC82-4DEB-B966-BBA8EF4D2C9E tit kirkänb C0EB795E-EE23-4990-BAB9-897C93C70CE3 nam kirkänas E2F...

NSURLConnection : Bad url problem

It seems that the NSURLConnection have problems with handling æ,ø,å. And the webservice I'm trying to connect to do not handle that I convert them to UTF8 chars. Any suggestions? ...

Javascript replace() doesn't work in VS - unknown character

I'm trying to use the javascript replace function to replace curly quote with straight quotes: var EditedContent = content.replace(/“/g, '"'); This works great in a little proof of concept html file I've whipped up, but when it's in a visual studio project, it replaces the curly quote with a symbol that suggests 'unknown character': ...

How can I use literal single quotes inside the argument to perl's -e?

I try to create a short perl command that creates SQL inserts for my DB based on a text file. However, I am not able to get in the single-quotes used by SQL perl -pe '$i += 1; chomp; @a = split /\t/; $_ = "INSERT INTO XYZ VALUES($i, \'$a[4]\');\n"' results in a syntax error near unexpected token `)' Any ideas? ...

Rails - Special Characters converting to ??? when saving

Just trying to handle special characters into a string field on my model. When it saves to my Oracle database which is set to AL32UTF8 it is converting them to ??? Tiny-mce is hooked up on one of the other fields and I was able to configure it to convert a backwards apostrophe for instance to ‘ Just need to decode / convert m...

Special Characters in JavaScript not displaying properly on website

Hi, My IE and Chrome browsers are not displaying the French phrases correctly when I go from a French phrase (onload function) to a English phrase (onmousedown function) and back to a French phrase (onmouseup function). When I let up on the mouse of a particular phrase it goes back to French but the special characters for ô and é (which...

android Sax parsing exception for "»" character

hi friends i'm using Sax parser for parsing my xml file which i recieve from the internet... The problem is that the normal xml is parsed fine except the xml files which have "»" symbol in the attributes... everytime i try parsing the file i get the following error 02-11 16:57:35.547: INFO/System.out(754): org.apache.harmony.xml.Expat...

What character value does Control + Enter/Return key send?

We have a multi-line control that we are attempting to prevent the Enter/Return key from being used to create a new line. Strangely enough, "AcceptsReturn" as False does not prevent this. So we added the following: Private Sub txtAddr_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddr.K...

Special HTML characters in phpDocumentor in the NetBeans IDE

As you know the NetBeans IDE will pop you inline documentation in your PHP sources based on the phpDocumentor syntax. What I found out is that when I use special HTML characters in my phpDocumentor documentation they are treated as HTML in NetBeans but as text in the HTMl doc generated by phpDocumentor. For example: /** * Add a new &...

How do I match accented characters in preg_match()?

I've read how accented characters might sometimes match [a-z]. What I'd like to know is how I could match a specific accented character. Obviously, preg_match('/[ñ]/', 'ñ') does not work. ...

why are special characters read false from file

Hi my program saves some settings (mostly string) to a text file, to retrieve them later, but alas! The special characters come back unrecognizable! saveSettings saves the strings one by one... void email::saveSettings(string filename){ ofstream savefile(filename.c_str(),ios::out | ios::trunc); email settingsemail(this); s...

Strange occurence with string and special character

#include <iostream> #include <string> using namespace std; string mystring1, mystring2, mystring3 = "grové"; int main(){ mystring1 = "grové"; getline( cin, mystring2 ); //Here I type "grové" (without "") cout << "mystring1= " << mystring1 << endl; cout << "mystring2= " << mystring2 << endl; cout << "mystring3= " << mystring3...

FTP URL username and paassword with special characters

It looks like standard Java URL class FTP client cannot work with username having characters such as "@" and ".". The username I get from my hosting provider is something like "[email protected]", so the whole URL looks like "ftp://[email protected]:[email protected]". It works perfectly with all ftp clients, but apparently not wi...

How do I convert special characters using java?

I have strings like: Avery® Laser &amp; Inkjet Self-Adhesive I need to convert them to Avery Laser & Inkjet Self-Adhesive. I.e. remove special characters and convert html special chars to regular ones. ...