characters

Automatic Set Japanese on Textfield focus

Hi . I have a web application. It is running on struts framework but i dnt think it's relevant to my question. :) I want that when I click or put my cursor on my textbox I can directly type japanese katakana, hiragana and kanji characters. Windows has this IME which enables you to type these characters by enabling japanese or any lang...

(zsh brace expansion | seq) for character lists - how ?

Bash allows me to write the statement, $ for i in {h..k} ; do echo $i ; done but zsh only allows number list expansion such as {8..13}. What's the best workaround? Something like seq for characters... ...

Jquery Table sorter and special characters

Hi there, am using jquery tablesorter plugin and in my "country" column i got special characters like this: Índia. The fact is that when i hit the header of the column to sort it, it puts my "Índia" at the end of the column. I guess the nav sees the instead of the real "I" with an accent. Any clue on how to make it work even with acc...

URL encoding for latin characters in Java

I'm trying to read in an image URL. As mentioned in the java documentation, I tried converting the URL to URI by String imageURL = "http://www.shefinds.com/files/Christian-Louboutin-Décolleté-100-pumps.jpg"; URL url = new URL(imageURL); url = new URI(url.getProtocol(), url.getHost(), url.getFile(), null).toURL(); URLConnection conn = ...

String useless character strip - PHP

Hi! I've got a huge problem. I made a special ID for the things in our webpage. Let's see an example: H0059 - this is the special ID called registration number. The last two chars are the things' id. I'd like to cut off the useless characters, to get the real ID, what means strip the first char, and all the 0s before any other number...

.aspx character coding

I am having an problem. First time working with a windows server, do you know if there is any problem in character coding? My document is set to content="text/html; charset=UTF-8" but it's giving me funny words... you can check it here. This site is a pure HTML with few includes but anything else is just HTML. I can convert them to HTM...

How to detect and replace non-printable characters in a string using Java ?

For instance I have a string like this : abc123[*]xyz[#]098[~]f9e [*] , [#] and [~] represents 3 different non-printable characters. How can I replace them with "X" in Java ? Frank ...

Insert XML with more than 4000 characters into a Oracle XMLTYPE column

Hi, I have an oracle table with a column from type "SYS.XMLTYPE" and a storage procudure which is doing the insert: (Short version): PROCEDURE InsertXML ( pXMLData IN LONG ) IS BEGIN INSERT INTO MY_TABLE (XML_DATA) VALUES(pXMLData); END InsertXML; I call this sp from my C# code with type "OracleType.LongVarChar". Now t...

IE6 the last three characters in a div are being repeated else where in the page? really weird

Hey, Basically i have an issues (in IE6) where the last three characters of a line of text in a div are being repeated further down the page even though they are only in the HTML once. http://www.disturbmedia.com/jason/test/ please see the numbers in black, its always the last three characters that get repeated, so strange. I have neve...

Escaped International characters?

I am looking at some PHP code where there are translation strings. For French there are characters that I have never seen before and I am asking if someone could shed a light. These strings are used as HTML output, but also as body text to send emails. È = é Ë = è ‡ = à Í = ê ... ...

Why do I get garbage output when printing an int[]?

My program is suppose to count the occurrence of each character in a file ignoring upper and lower case. The method I wrote is: public int[] getCharTimes(File textFile) throws FileNotFoundException { Scanner inFile = new Scanner(textFile); int[] lower = new int[26]; char current; int other = 0; while(inFile.hasNext()){ ...

PHP/MySQL - Special characters in URLs. How to avoid?

Hey everyone, My database contains information extracted from an external feed. In this raw text feed, the following text is used in place of special characters: & - & ' - &39; é - é I extract some of this text to form URLs. For example, a URL that I construct from data containing these characters might look like this: ht...

How do I get the set of all letters in Java/Clojure?

In Python, I can do this: >>> import string >>> string.letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' Is there any way to do something similar in Clojure (apart from copying and pasting the above characters somewhere)? I looked through both the Clojure standard library and the java standard library and couldn't find i...

Culture specific characters to nice URL format

Hi I need some functionality to make the following string in a url-friendly format: "knæ som gør" should be "kna-som-gor" That is, replacing culture specific characters to characters that can be used in urls. Using .Net and C# Please help me :) /Andreas ...

What characters are widely supported in CSS class names?

As detailed here among other places, the only valid characters in a html/css class name is a-z, A-Z, 0-9, hyphen and underscore, and the first character should be a letter. But in practice, what characters are in fact supported by most browsers? More specifically, I wonder what browsers properly understands a slash (/) in a class name, a...

Regex to match 4 repeated letters in string using java pattern

i want to match something like aaaa, aaaad, adjjjjk. Something like this ([a-z])\1+ was used to match the repeated characters but i am not able to figure this out for 4 letters. ...

vim special character "^\"

Hi, I opened a file in VI and I see a few instances of "^\" What exactly is this character? Thanks ...

Another C datatypes question

Hello. Well, I completely get the most basic datatypes of C, like short, int, long, float, to be exact, all numerical types.These types are needed to be known perform right operations with right numbers. For example to use FPU to add two float numbers. So the compiler must know what the type is. But, when it comes to characters I am li...

Java how can I add an accented "e" to a string?

Hello, With the help of tucuxi from the existing post Java remove HTML from String without regular expressions I have built a method that will parse out any basic HTML tags from a string. Sometimes, however, the original string contains html hexadecimal characters like (which is an accented e). I have started to add functionality which...

Which of the following Unicode characters should be used in HTML?

I am aware that any Unicode character can be inserted into an HTML document via the following format: � ...where 0000 is the character code of the desired character My question is: which of these characters has the most widespread availability when it comes to the client's browser being able to display the character? In other...