character

Encoding issue: £ pound symbol appearing as <?> symbol

My database field is set to utf8_general_ci and my websites encoding is utf8. The £ symbol is coming up as a black diamond with a question mark through the center. I tried changing it to &pound; in the database and it just outputted I tried a string replace: $row['Information'] = str_replace("£", "&pound;", $row['Information']); ...

Convert char to lower case in J2ME without using the Character class

I'd like to convert a char to lower case in a J2ME app. The usual Character.toLowerCase() doesn't work for an arbitrary Unicode character in J2ME, so I need some light API, or, preferably, a piece of code that would do so. Thanks! ...

Overlayed text?

Hi! Quick text-processing question. It's not necessarily related to programming, but this is the best place I figured I should go. Rate down to tell me this kind of question is not welcome here. (Though, I really like my one little reputation point.) Anyways, how can I encode text so that two characters get rendered in the same charspa...

typedef problem

hey people kindly tell me if the following declaration is correct? if it is then kindly explain typedef char HELLO[5]; HELLO name; now what datatype is name? [as in a character,integer etc] i came to know that name will be an array of strings but when i run the following programme i get error #include<stdio.h> typedef char HEL...

How to insert trademark symbol in LabelField on Blackberry

I'm trying to figure out how to add a trademark symbol on a LabelField in Blackberry API v5.0. Can anyone please help me? Thx in advance. ...

Looking for an single byte encoding with grave=xC1 acute=xC2 cedilla=xD0

Having trouble finding a code page or other single byte encoding having accents in these positions: grave in xC1 acute in xC2 cedilla in xD0 ...

C simple array access comparison

int isEmpty(char x [1000]){ int i = 0; while( x[i] == " " || x[i] == "/t" || x[i] == ""){ i++; } if (i != 999) return 1; } return 0; } The errors I recieve: warning: comparison between pointer and integer warning: comparison with string literal results in unspecified behavior I realise my c...

PHP Help converting diacritic characters to HTML quotes

This one's driving me nuts . . . I have a bunch of MS Word files that a client wants displayed on his web site. I've converted them to HTML using "Save as Web Page" -- and yes I know that this produces lousy HTML but other methods I've tried lose the links to the imbedded images. For the most part, I can use PHP to clean up the displa...

How to access the first character of a character array?

#include <stdio.h> int main(void){ char x [] = "hello world."; printf("%s \n", &x[0]); return 0; } The above code prints out "hello world." How would i print out just "h"? Shouldn't the access x[0] ensure this? ...

east asian language is broken when I make Executable in DrRacket(language is scheme)

hello~! I'm using DrRacket for Scheme Programming. for I'm not a person who use native English, I need to print out east asian language. there is no problem when I press run button in IDE. east asian language is printed well. but when I make an Executable file, and execute, east asian characters were broken when program prints out. ...

Is there a formal definition of character difference across a string and if so how is it calculated?

Overview I'm looking to analyse the difference between two characters as part of a password strength checking process. I'll explain what I'm trying to achieve and why and would like to know if what I'm looking to do is formally defined and whether there are any recommended algorithms for achieving this. What I'm looking to do Across ...

get index of character in python list

What would be the best way to find the index of a specified character in a list containing multiple characters? ...

Create Lists from Character String

Hello all, Perhaps my brain is not working today but i cant figure out how to create a list from 2 character strings. I've currently got scale_lab [1] "Very Poor" "Poor" "Average" "Good" "Very Good" [6] "Don't Know" and scale_rep [1] "1" "2" "3" "4" "5" "9" So what I want to do is combine the two into a list so ...

jQuery live counter for SPECIFIC chars in textarea

Googling is driving me mad; all jQuery textarea counters I can find either count words, newlines or characters. I would like to count a specific character as it gets entered in the textarea. More specifically I would like to 'live count' the amount of @ signs that get inserted before the backend processes it. Live is nicer (with the cou...

VS2008 - VB.net Font Dialog - Filter Fonts by Codepage/Language

Update (in response to first answer, from Hans Passant): I guess I didn't explain my use-case well enough. This application will be designed for people to enter data in a "master" language (most likely English, but not necessarily), and then facilitate the entry of translations in another language. This is all done with a rich-text box ...

Script counting characters in a text box using Javascript not working?

I need to enforce character count limit in my application. I found some JavaScripts from web but they are not working, Here is my code. I would be very thankful if someone can kindly see the code & correct whats causing problem. <HTML> <HEAD> <script type="text/javascript" src="http://ajax.googleapis.com/ ajax/libs/jquery/1.4.2/jquery....

R Programming: Automating Merge of Character Strings

Hi there, I'm trying to automate some of the systems at work here specifically to do with report generation based on survey data. Lets say i have 3 comments for 1 question. current_comments <- c("too slow", "not fast enough", "bad speed") Basically what i want to do is merge the comments into one string separated by a "-" too look ...

Assembly Character Comparison Problem

Hi all, We are trying to implement levensteing distance algorithm in assembly and calling the assembly function from C code. But we have some char comparison problem and could not solve the problem. Function takes two char* parameters. In the first two lines i mov the these addressess to ecx and edx. iminusOne and jminusOne are indexe...

Which is the most clojuresque way to compare characters and string? (single char string)

Hi to everyone, I was wondering about which is the best (clojuresque) way to compare a character and a string in Clojure. Obviously something like that returns false: (= (first "clojure") "c") because first returns a java.lang.Character and "c" is a single character string. Does exists a construct to compare directly char and string w...

How to convert a string into array in delphi ?

Dear experts: In php and java there are explode and tokenizer function to convert a string into array without punctuations. Are are functions or some way in delphi to do the work. Suppose there is a large file " This is, a large file with punctuations,, and spaces and numbers 123..." How can we get array "This is a large file with punct...