character

how to read character from console in c++?

I'm struggling with reading characters from console in c++. Here is what I tried to do: char x; char y; char z; cout<<"Please enter your string: "; string s; getline(cin,s); istringstream is(s); is>> x >> y >> z; The problem is if the user enter something like this "1 20 100": x will get 1 y will get 2 z will get 0 What I want t...

Chinese Characters in email sent via PHP not showing up.

hi All, a funny problem. I send mail via PHP from my testing server with Chinese chars in it and it sends perfectly. Encoding is utf-8. When I upload the same PHP file to another server and try to send from there, the e-mail will look 90% fine in one mail client (web-based mail actually, gmail), but in my mail client (Apple Mail) it's a...

How to submit a form OnKeyPress with Javascript?

Hi! I want to make a form like this, and i want to post the form - with javascript - in all the keydowns. <form action="{$formaction}" enctype="multipart/form-data" method="post"> <input type="text" name="n"> <input type="password" name="pw"> <button name="in" type="submit">enter</button> </form> please tell me how to do this. ...

Submit a different form depending on character count in jQuery?

Ok, so here's what I want to do, preferably with jQuery 1.4.2: Have one <input type="text"> and one <input type="button"> If the text-input has exactly N number characters, I want a click on the button to submit the form with one action. Else, the button submits the form with another action. Unfortunately I'm a jQuery n00b, and I can...

Is there a character that is the same size as a bullet, but open?

I'm looking for a character that is just like but an open circle (Maybe even a bigger bullet and it's open counterpart.) Does anybody know if there are such characters? ...

special character in UNIX

I want to add backspace character literally in my file named junk. So I did following $ ed a my name is happy\b (here b means I typed backspace so \ gets disapperaed and cursor sits sfter y) . w junk q But when I do $ od -cb junk it doesn't show backspace. ...

Error:Conversion Between Two Character Set

Hi, I am getting the error "Conversion Between Two Character Sets" when connecting to SAP from .NET using SAP .NET Connector. When i use Win XP and Visual Studio 2003 there is no problem. But when i reference the .dll from visaul studio 2008 on windows 7, the error appears. What can i do? Thanks ...

Mysql SET NAMES UTF8 - how to get rid of?

In a very busy PHP script we have a call at the beginning to "Set names utf8" which is setting the character set in which mysql should interpret and send the data back from the server to the client. http://dev.mysql.com/doc/refman/5.0/en/charset-applications.html I want to get rid of it so I set default-character-set=utf8 In our server...

Pygame program that can get keyboard input with caps

I have a Pygame program that needs text input. The way it does this is to get keyboard input and when a key is pressed it renders that key so it is added to the screen. Essentially it acts like a text field. The problem is, when you hold shift it doesn't do anything. I relize this is because the program ignores shift input and instead wr...

MSAccess database with Basic - accessing fields

Hello, First time I'm touching both access and basic, but I'm doing a favor for my sister. I have to retrieve data from a table and some headings have a % character in them and changing the headings is not and option. what does msaccess replace % with? Let Entitlement = rc![Entitlement% pozitia 1] rc is the recordset :P ...

Character Movement Animation

Hi Guys! I've read a lot around everywhere, but wasn't able to make a simple character movement animation. What I have is a PNG file and an associated PLIST file with all the frames for a "walking" animation of a character that I want to run when the user touches the screen. I want to loop that animation and also at the same time, move ...

How do I split Chinese characters one by one?

If there is no special character(such as white space, : etc) between firstname and lastname. Then how to split the Chinese characters below. use strict; use warnings; use Data::Dumper; my $fh = \*DATA; my $fname; # 小三; my $lname; # 张 ; while(my $name = <$fh>) { $name =~ ??? ; print $fname"/n"; print $lname; } __...

Efficient way to calculate byte length of a character, depending on the encoding

What's the most efficient way to calculate the byte length of a character, taking the character encoding into account? The encoding would be only known during runtime. In UTF-8 for example the characters have a variable byte length, so each character needs to be determined individually. As far now I've come up with this: char c = getCha...

NSXMLParser, Issue with ASCII Character Set

Hi all <Feeds> <channel> <ctitle>YouTube</ctitle> <cdescription>YouTube - Recently added videos</cdescription> <items> <recentlyAdded> <item> <serverItemId>1</serverItemId> <title>Fan Video CARS</title> <author>mikar1</author> <guid isPermaLink='false'></guid> <link>http://www....

How do I split up a long value (32 bits) into four char variables (8bits) using C?

I have a 32 bit long variable, CurrentPosition, that I want to split up into 4, 8bit characters. How would I do that most efficiently in C? I am working with an 8bit MCU, 8051 architectecture. unsigned long CurrentPosition = 7654321; unsigned char CP1 = 0; unsigned char CP2 = 0; unsigned char CP3 = 0; unsigned char CP4 = 0; // What do I...

Is there a library to display a Virtual Human [WPF]

While there are a lot of 3D libraries out there, I'm in struggle to find one suitable for WPF. Basically, I want a Character Animation engine, which loads bone hierarchy and allows me to manipulate the skinned mesh. I know, this is a classic topic for all the 3D engines. And they are made for building games. How do I display a Skinned...

Android: How/where to put gesture code into IME?

Hi, I'm new to Android but I'm trying to create an IME that allows for gesture-character recognition. I can already do simple apps that perform gesture recognition but am not sure where to hook in the gesture views/obj with an IME. Here is a starting skeleton of what I have for the IME so far. I would like to use android.gesture.Gestu...

Query Regarding Character Operations..

Hi, Please explain the following piece of code.. printf("%c\n",0+'0'); --> returns 0 printf("%c\n",1+'0'); --> returns 1 printf("%c\n",0+'1'); --> returns 1 printf("%c\n",1+'1'); --> returns 2 Thanx. ...

SVN 255 Character Problem

Hi Guys, I am using TortiseSVN and we have a problem when we exporting etc because subversion errors. The path has a character limit 255 - so I am not sure if this is the problem [I think it is in Win7 x-64 bit] How do I fix this ? i.e. allow paths for >255 characters ? ...

Using strncat with char array element in C

Hi.. I have get error with the following code and i can't figure it out. char name[]="tolgahan" char result[100]=""; strncat(result,name[1],1); I guess, i need to convert name[1] to string format but i don't now how can i do that. Please help me. Best regards. ...