characters

Why does sed fail with International characters and how to fix?

GNU sed version 4.1.5 seems to fail with International chars. Here is my input file: Gras Och Stenar Trad - From Moja to Minneapolis DVD [G2007DVD] 7812 | X Gras Och Stenar Trad - From Möja to Minneapolis DVD [G2007DVD] 7812 | Y (Note the umlaut in second line.) And when I do sed 's/.*| //' < in I would expect to see only the X and...

How do you generate passwords?

Random Characters? Passphrases? High Ascii? cat /dev/urandom | strings ...

What would be the simplest way to alpha sort an array of chars in C?

I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C. ...

CEdit control maximum length? (in characters it can display)

What is the maximum length for the text string contained in a CEdit control in MFC? I get a beep when trying to add a character after the character 30001 is this documented anywhere? Can I display longer texts in a CEdit? Should I use another control? As "Windows programmer" says down below, the text length limit is not the same when th...

What defines data that can be stored in strings

Hi, A few days ago, I asked why its not possible to store binary data, such as a jpg file into a string variable. Most of the answers I got said that string is used for textual information such as what I'm writing now. What is considered textual data though? Bytes of a certain nature represent a jpg file and those bytes could be repre...

URL Routing: Handling Spaces and Illegal Characters When Creating Friendly URLs

I've seen a lot of discussion on URL Routing, and LOTS of great suggestions... but in the real world, one thing I haven't seen discussed are: Creating Friendly URLs with Spaces and illegal characters Querying the DB Say you're building a Medical site, which has Articles with a Category and optional Subcategory. (1 to many). ( Could...

How do I get these strange characters when I try to "echo" the html string?

Hi, I am sending the echo to mail function via PHP from variable that includes HTML code. The strange thing is, that this <����}im� shows up AFTER the string.. but I do not manipulate with it anymore. The charset of mail function (the attachment) is same as charset of HTML code. ...

How do I insert Chinese characters into a SQLExpress text field?

How do I insert Chinese characters into a SQLExpress text field? I'm using SQL Express from VS 2008. When I add Chinese characters, either via an import app I wrote or by pasting them in from the data view inside Visual Studio, they end up as question marks. ...

MySQL or PHP is appending a  whenever the £ is used

Answers provided have all been great, I mentioned in the comments of Alnitak's answer that I would need to go take a look at my CSV Generation script because for whatever reason it wasn't outputting UTF-8. As was correctly pointed out, it WAS outputting UTF-8 - the problem existed with Ye Olde Microsoft Excel which wasn't picking up th...

What are all of the allowable characters for people's names?

There are the standard A-Z, a-z characters, but also there are hyphens, em dashes, quotes, etc. Plus, there are all of the international characters, like umlauts, etc. So, for an English-based system, what's the complete set? What about sets for other languages? What about UTF8, UTF16, etc? Bonus question: How many name fields are nee...

TSQL Like Escape clause

I am trying to filter items with a stored procedure using like. The column is a varchar(15). The items I am trying to filter have square brackets in the name. For example: WC[R]S123456. If I do a LIKE 'WC[R]S123456' it will not return anything. I found some information on using the ESCAPE keyword with LIKE but I do not understand how...

What are standards for characters allowed in text fields

What are the typical characters allowed in text fields in a new user sign-up? Are there www standards? Especially interested in Username and Password character types allowed. ...

cruisecontrol config.xml special characters svnbootstrapper

I have a line like : <svnbootstrapper LocalWorkingCopy="${projects.dir}/${project.name}" Password="4udr=qudafe$h$&e4Rub" Username="televic-education" /> in my config.xml. Because of special characters in the Password cruisecontrol service won't start. Is there a way to solve this? Maybe with setting a property? Or escaping charact...

Counting lines, words, characters and top ten words?

Hi I'm pretty new to Stack Overflow so I hope that I'm doing this correctly and that someone out there has the answer I need. I'm currently coding a program in Java with Eclipse IDE an my question is this: I need a snippet of code that does the following It's supposed to get a .TXT file containing text and from that .TXT file count t...

How can I check if a single character appears in a string?

In Java is there a way to check the condition: "Does this single character appear at all in string x" without using a loop? Thank you, ...

Reading lots of characters and updating a textbox

I am reading data from a stream (provided by a process) character by character and adding it to a textbox so the user can see. The only problem is, this is SLOW. The user needs to see the data as it is given to the program (with little to no delay). I would like something like how terminals handle text, it can scroll by so fast that it's...

Embed characters in multiple dynamic textfields

How can I embed some characters one time, and have them embedded in all my dynamic textfields? ...

Is 'c' said to be a character or a string in Ruby - or both?

char hello[] = "hello"; #C hello = ['h', 'e', 'l', 'l', 'o'] #Ruby If I output the class of hello[0] in Ruby, it says "String". This is because single quoted Strings exist in Ruby and there does not seem to be the notion of a char type. The other day I said to my coworker that he had an array of characters and he said "no I don't, I ha...

How to check if a Java character is a currency symbol

I have to perform a check on a character variable to see whether or not it is a currency symbol. I have discovered the Character.UnicodeBlock.CURRENCY_SYMBOLS constant however I am unsure of how to use this to determine whether or not the character is in that block. If anyone has done this before help would be much appreciated. Thanks ...

Chinese characters in an InfoPath browser form submitted to a web service appear as question marks

I have a web service that submits InfoPath forms to a workflow. When I submit a form from the browser, Chinese characters entered into text boxes or rich text boxes are passed to the service as question marks. The service exposes two methods: one that takes the form as an XML string and another that takes it as an XML document. The probl...