special-characters

Special (or foreign countries) characters

给你一囗甜甜゛ 提交于 2019-12-05 16:25:59
I am new to C# and was experimenting with the ASP.Net GridView (framework 3.5), and I found out a big problem when the gridView text contains the following: ñ/Ñ/á/Á/é/É/í/Í/ó/Ó/ú/Ú or a â, ê, î, ô, û, ë, ï, ü or even a ç The results end up displaying something like this: &+#+237 I made a mixture of pain by doing a table,dataset etc... to get the data from the database clean as the letter itself. I also tried making a method that cleaned the variables but it was a terrible IF. I was wondering if there was a way to make the letters appear as themselves (ñ as ñ not as &+#+237) when extracting

Invalid characters in a filename on Windows?

不打扰是莪最后的温柔 提交于 2019-12-05 16:15:06
As per the MSDN , the following characters cannot be part of the file name: Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following: ◦The following reserved characters: < (less than) > (greater than) : (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk) In .net an api is provided to find the what are the characters not allowed in a filename char[] invalidFileChars = Path.GetInvalidFileNameChars(); Remarks The array returned

How do I split a string with special characters into a NSMutableArray

随声附和 提交于 2019-12-05 15:41:56
I'am trying to seperate a string with danish characters into a NSMutableArray. But something is not working. :( My code: NSString *danishString = @"æøå"; NSMutableArray *characters = [[NSMutableArray alloc] initWithCapacity:[danishString length]]; for (int i=0; i < [danishString length]; i++) { NSString *ichar = [NSString stringWithFormat:@"%c", [danishString characterAtIndex:i ]]; [characters addObject:ichar]; } If I do at NSLog on the danishString it works (returns æøå); But if I do a NSLog on the characters (the array) I get some very stange characters - What is wrong? /Morten First of all,

GCM and Special characters

我的梦境 提交于 2019-12-05 13:32:33
I recently changed my c2dm push aaplucation to GCM. A new problem appeared. Its now receiving '?' instead of 'ö','ï', ... My server logs correct Strings, but the application receives '?' insteads. Do you think it could have something to do with GCM? My code is the following: public static void displayMessage(Context context, Intent intent) { Bundle extras = intent.getExtras(); if (extras != null) { String message = (String) extras.get("message"); Log.v("extras", extras.toString()); Util.generateNotification(context, message, intent); } } and the log is then: 10-02 22:18:23.671: V/intent(29809)

How do I make control characters programatically in Javascript?

◇◆丶佛笑我妖孽 提交于 2019-12-05 12:36:29
In Javascript I can type '\u00A3' to get a character using its char code. I can do this programatically to with String.fromCharCode(parseInt('00A3', 16)) . But I can't find a way to do the same for a control character. I can type them in my source code but I want a way to generate them in code. Sounds to me like you could just use this list: http://en.wikipedia.org/wiki/C0_and_C1_control_codes and use the character points defined there to insert them with \u or String.fromCharCode as in your example? PS: instead of the parseInt , you could use a literal: 0x00A3 You can easily embed octal

What are valid characters for Windows environment variable names and values?

谁说胖子不能爱 提交于 2019-12-05 11:12:37
问题 After some reseach, I found out that length limits for names are 255 and for values 32767 characters. But which characters are allowed for names ? And which characters are allowed for values ? 回答1: About variable values: you can use most characters as variable values, including white space. If you use the special characters <, >, |, &, or ^, you must precede them with the escape character (^) or quotation marks. If you use quotation marks, they are included as part of the value because

Reading special characters like ÆØÅ into R (Rstudio)

蓝咒 提交于 2019-12-05 10:49:09
I am trying to read a CSV file containing questionnaire data written in Norwegian. So this file contains the letters Æ Ø Å, however R does not seem to handle these letters well, they all appear as question marks. I use this to read the data: data <- read.csv2("Responser - Vasket - 20.06.2013.csv") Is there any options I should use to let R know I have special characters? and I am using Rstudio on Windows 7. You need to specify the fileEncoding argument to read.csv2 ( not as well as (?) the encoding ). Before you get to R, it is a good idea to check what the encoding of the file is using a text

What are the official XML reserved characters?

£可爱£侵袭症+ 提交于 2019-12-05 10:42:20
In this page , Microsoft says that XML reserved characters (and their entity) are the following ones: > > < < & & % % But in this other page , I found that also ' is a reserved character (and its entity is &apos; ). Can someone indicate me some official reference in which are listed all and only the XML reserved characters? According to the XML spec , the only characters that must be escaped when used as character content rather than markup are & (as & , & or & ) and < (as < , < or < ), plus > when it is part of the sequence ]]> . In addition, single quotes must be escaped (typically as &apos;

How to get char from HTML character code?

别等时光非礼了梦想. 提交于 2019-12-05 10:39:47
How can I convert the HTML entities € ► ♠ to their actual characters € ► ♠ using JavaScript? An example would be: alert(String.fromCharCode(8364)); Where 8364 is the number of the HTML entity. To replace a full body of text automatically then you will need to use this regular expression replacement example: "The price of milk is now €100000.".replace(/&#(\d{0,4});/g, function(fullStr, str) { return String.fromCharCode(str); }); The magic happens here: replace(/&#(\d{1,4});/g, function(fullStr, code) { return String.fromCharCode(code); }); The first argument to replace, /&#(\d{1,4});/g ,

Unicode symbols (arrows) in Java

别等时光非礼了梦想. 提交于 2019-12-05 10:38:44
i want to use following symbols for buttons in my app: arrows http://img402.imageshack.us/img402/3176/arrowso.jpg 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 result http://img693.imageshack.us/img693/9063/resultbu.jpg It seems, that \uE318 and \uE313 are wrong. What should i use instead? For goToLastButton and goToFirstButton i prefer to use this images alt text http://img3.imageshack.us/img3/5724/singlearrow.jpg but i can