a datatype that can hold a character of the implementation’s character set.
Questions tagged [chars]
208 questions
1
vote
0 answers
Problems with CodeIgniter and setting characters
I use CodeIgniter and MySQL. I am getting the following message:
Can't initialize character set iso 8859-15 (path: /usr/share/mysql/charsets/)
I use a hosted server and have no access to the usr directory. This is the function in the CI…

Timo
- 2,922
- 3
- 29
- 28
1
vote
2 answers
Regexp to strip off only ending numbers or chars after _ at the end of a string
I'd like to have a regexp in java to only strip off numbers if they are at the end of the string and everything after the underscore.
1) massi_xxx -> massi
2) massi_12121 -> massi
3) massi123 -> massi
4) 123massi1 -> 123massi
I found that
…

user1845422
- 13
- 3
1
vote
2 answers
Converting floats to strings in javascript
Ok i want to save an array of THREE.Vector3 efficiently to local storage. Since javascript works using Strings, i want to convert a 32bit float to a string using the most efficient bit ratio. i.e ideally 32 bit float = 4 * 8 Bit which is easy to do…

RenegadeMaster88
- 41
- 5
1
vote
3 answers
Why can some HTML documents display special chars written plainly (e.g. as ä) without the need for codes (e.g. ä)
I'm making a little website with german and french content. Some of the documents display text correctly, even though all umlauts are written as äöü and not with codes. Other docs need the codes but I can't find the difference between the…

Balz Guenat
- 1,552
- 2
- 15
- 35
0
votes
1 answer
how to split a string or make chars in vb 2010
I searched but nothing explains how to do this,
for example
Dim sentence as String = "cat is an animal"
if i make a msgbox :
MsgBox(sentence)
it shows
cat is an animal
how to make a msgbox that says
cat
is
an
animal.

Emoticon
- 26
- 1
- 5
0
votes
2 answers
Xml encoding for multi-nation solution
We are parsing xml file that contains user informations such as name, age etc. But the users are from all over the world and we need different char-set in xml. For example, there is user with name "Sikl¢si" . If I set xml encoding UTF-8, c#…

londondev
- 231
- 2
- 13
0
votes
4 answers
Need to read white space and other chars C++
I have been working on this all day with no luck. Its night now and don't know what to do. My assignment is to read number of vowels, number of white spaces, and number of other characters in a user inputted sentence. I know i need to use…

user1196155
- 13
- 1
- 1
- 4
0
votes
1 answer
CakePHP Images with special chars in name are not displayed
I'm using CakePHP 2.0.4, PHP 5.3.1, Apache 2.2.14.
For example: the filename is F#7m7~1.gif. It really exists, the path and filename are correct.
Before print HTML tag, I encode it by using urlencode() and the tag goes like:

thicolares
- 295
- 3
- 14
0
votes
2 answers
map integer values to chars in array
I've got a method that generates random strings:
def generate_letters(length)
chars = 'ABCDEFGHJKLMNOPQRSTUVWXYZ'
letters = ''
length.times { |i| letters << chars[rand(chars.length)] }
letters
end
I want to map values to generated…

lukaszkups
- 5,790
- 9
- 47
- 85
0
votes
3 answers
converting integers to chars in C(according to ASCII table)
been searching everywhere, but couldn't the correct answer.
the problem is pretty simple:
i have to convert ASCII integer values into char's.
for example, according to ASCII table, 108 stands for 'h' char. But when i try to convert it like…
0
votes
1 answer
Are digits in JavaScript regarded as chars?
Given the following Regular Expression in JavaScript:
56\d.*
Above would match e.g. 45678. So my Question is: are digits in JavaScript chars?
*d Matches any single digit, . Matches any char except newline, * matches zero or more occurrences*

Stephan Kristyn
- 15,015
- 14
- 88
- 147
0
votes
1 answer
Trim node inside views
I have a view (Drupal 7), filled with nodes. And I got a trimmer on 200 chars on the body. But as it happens, somethimes a word is cut in half. How do I get to trimm Drupal on words in stead of chars?

Michiel
- 7,855
- 16
- 61
- 113
0
votes
1 answer
Why are these characters in PHP getting converted?
I am getting some information like large amounts of text from the database, but while echoing using PHP, the characters are being changed. How do I get it to display the normal thing? Thanks.
//makes database connection and queries the db
$row =…

steve
- 31
- 2
- 8
0
votes
1 answer
Converting int to Char* giving ascii values C++
hi im trying to intialize a variable
im calling it
int Score;
char Buffer[1024];
im using SDL so to display them i had to convert Score to char
With this im incrementing the score
case SDLK_m:
Score+=1;
…

Makenshi
- 993
- 3
- 15
- 28
0
votes
1 answer
Why am I getting "illegal start of expression" for char array and "class, interface, or enum expected" for the method?
I am trying to create a program that shuffles a deck of cards in character array form. Here is my code. Problem is that it compiles with "illegal start of expression" for the deck array,as well as other errors,and "class, interface, or enum…