special-characters

C# Special Characters not displayed propely in XML

Hi..i have a string that contains special character like (trademark sign etc). This string is set as an XML node value. But the special character is not rendered properly in XML, shows ??. This is how im using it. String str=xxxx; //special character string XmlNode node = new XmlNode(); node.InnerText = xxxx; I tried HttpUtility.html...

how to replace special characters with the ones they're based on in PHP?

How do I replace: "ã" with "a" "é" with "e" in PHP? Is this possible? I've read somewhere I could do some math with the ascii value of the base character and the ascii value of the accent, but I can't find any references now. thanks ...

xml and html escaping special characters

i store my article in a xml file, so if i write into it special characters "' xml automatically escapes this characters and when i get(via PHP) the xml content i get something like \". so if i write into xml "hello dude" my html will look like this \"hello dude\" how can i get the xml content like it was initially inserted("hello dude")...

Why .NET XML API doesn't protect me from null character?

My application receive strings from outside and construct an XML document string fromOutside = "\0"; XAttribute a = new XAttribute(fromOutside); when the attribute value contains null character then I got exception when trying to save XML to the disk (when it goes into XmlWriter) System.ArgumentException : '.', hexadecimal value 0x00...

ajax post special characters

How do I pass a a large string containing characters like '%' and '&' to my php page through ajax post? In other words how to javascript-encode them and php-decode them? ...

''' character shows up as "\'" in php output.

I am working on a post type form. The site is wordpress based. While testing the form, I noticed that everytime I use the ''' character, when the post is posted, it prints out "\'" instead. For example: Input: "Bob's birthday plans." Output: "Bob\'s birthday plans." How do I stop php or wordpress, whichever is responisble, from doi...

Send special characters in xml through web service using .net

Hello i'm developing a .net application which consumes a java web service, i created the client through wsdl.exe tool and its working fine, one of the method of the web service, receives an xml document as a parameter, and im using an XmlTextWriter to generate the document, but im having problems when including special characters inside ...

special character wpf

Greetings, a simple WPF question. I would like to have a button with content="<" (the "backward button") How to I achieve this because the following wrong: Content="<" ...

How do you guys work around the need for apostrophes in certain function names?

When I'm programming, I often find myself writing functions that -should- (to be proper english) contain apostrophes (too bad C started everyone thinking that an apostrophe was an appropriate delimiter). For example: get_user's_group() -> get_users_group() . What do you guys do with that forced-bad-english ambiguous english? Just igno...

Django: # in url as a character?

I've made a Django application that uses tags. When i use tag 'c#' and try to redirect to mysiteaddress/tags/c# on server it redirects to ../tags/c and shows me stuff connected to 'c' tag, but when I do the same on my local development machine it redirects me to c%23 and works correctly. What should I change to make it work on production...

CouchDB and Special Characters

Question...I am trying to add data to CouchDB via the _bulk_docs API. For the most part I have this working, but any JSON value that contains a special character (e.g. certain Spanish or French characters exist in my data) results in an "invalid JSON" error given by CouchDB, and the data is rejected. I'm not sure what I need to set in ...

What should be the valid characters in a username?

Most web based user authentication systems don't like usernames that contain characters other than letters, numbers and underscores. Is there any particular reason for that? ...

Escape special characters

Hi, My code below seems to be encoding special charcters how do I get it to escape these? str1 += myGridView.Rows[idx].Cells[2].Text + ";"; When i check the grid view html source the table cell text is = 'http://news.google.co.uk/nwshp?ie=UTF-8&amp;hl=en&amp;tab=wn&amp;q=Clifford+Chance&amp;output=rss' But the value for str1 is 'ht...

Url Rewrite with Special Characters - Seo Advice Needed

Hello. I'm using Code Igniter to build a simple website, one thing about Code Igniter its that its pretty easy to do Rewrite Rules. But anyway, that ain't the problem. But lets consider this situation, in this website most webpage itens, if the name its to be spelled correctly the name as special characters ( á à é è .... mostly used i...

RTF Trademark character (&trade;)

I am trying to represent the trademark character in an RTF document. In HTML, I can use the entity &trade;, which generates the character . This does not work in RTF. I have also tried &#U153; but that does not work either. Any ideas on how to do this? ...

how to insert special character in mysql via php and display on html page

how to insert special character like registered symbol ® or Copyright sign or Trademark symbol in database and also want to show on html page what i have to do in both side (front end and back end), please elaborate which function is more effective Method 1 $_GET = array_map('trim', $_GET); $_POST = array_map('trim', $_POST)...

NSURL URLWithString: is null with non-english accented characters

I have the following string... NSString *googleSearchString = @"http://www.google.com/search?q=lyrics+%22Tænder+På+Dig%22+%22Jakob+Sveistrup%22"; Notice that it has some accented characters. When I try to turn that into a url the returned url is null... [NSURL URLWithString:googleSearchString]; So normally the url works except when...

Handling metacharacters in search strings

I have a user input that would be used in a search string that may contain a metacharacter For e.g. C# or C++ my grep command in a function was: grep -E "$1|$2" test.txt under direct replacement: grep -E "C\+\+|testWord" test.txt grep -E "C\#|testWord" test.txt the first caught the lines fine but not the second. Strangely, # was...

Define Default Charset for htmlentities()

I was wondering if there were any way to define the default encoding for htmlentities(). I have a big project going that uses htmlentities calls all over the place, and was wondering if there was a simple way to set it from ISO-8859-1 to UTF-8 as the default character encoding, using something simple like init_set. Or possibly with a sep...

What is the proper regex for Active-Directory object's names?

Hi to all, My application creates a SharePoint site and an Active Directory group from user input. Special characters that are mentioned in http://www.webmonkey.com/reference/Special_Characters becomes a big problem in my application. Application creates group names differently and application can't access them from name property. I wan...