a datatype that can hold a character of the implementation’s character set.
Questions tagged [chars]
210 questions
0
votes
2 answers
Sum and subtract chars in Java and always get result within the ASCII range
I have created two functions that sum and subtract the numeric values of two chars and return the char of the result in PHP. It's something like this:
function sumchars($c1, $c2) {
return chr(ord($c1) + ord($c2));
}
function subchars($c1, $c2)…
![](../../users/profiles/1200555.webp)
ali
- 10,569
- 20
- 77
- 128
-1
votes
1 answer
Decoding Ä Ü Ö in PHP and MySQL
I have problems decoding several Chars.
In the Database, the Chars Ä, Ö and Ü are saved like "ö" or "�"
Any Idea how i can decode those Chars back to ÄÖÜ?
![](../../users/profiles/1227714.webp)
Styler2go
- 604
- 2
- 12
- 31
-1
votes
1 answer
PoDoFo library c++ polish text to pdf
This solution
doesn't work for me.
Any other options?
EDIT
I have this:
string font = "resources//fonts//FreeSans.ttf";
PdfStreamedDocument document(output_pdf_name.c_str());
PdfPainter painter;
PdfPage* page;
page =…
![](../../users/profiles/7440594.webp)
Fryderyk
- 41
- 6
-1
votes
1 answer
c++ program shuts down in windows comparing a char to an array
I have this part in the program
char size_input[5]={'1','0','4','-'};
for (int i=0;i<6;i++){
cin >> size_input[i];
if(size_input[i]!=char(45)){
valid_size_characters++;
}else{
i=6;
}
}
It compiles with no…
![](../../users/profiles/6816615.webp)
KasterShoot
- 11
- 2
-1
votes
1 answer
PrintWriter writes something strange to txt
I wanted this program to write UTF-8 letters in .txt file but as a result i have numbers and other non-sense chars. Could anyone help me to solve it? I have no idea how to make it in print writer. I'll appreciate any help. Here's my code.
//all…
![](../../users/profiles/6394237.webp)
Sebastian Kopiczko
- 25
- 1
- 6
-1
votes
2 answers
$_GET vs $_SERVER['QUERY_STRING'] - encode issue
I'm accessing my script throw an URL like that
http://www.anydomain.com/code.php?a=ií
and code.php is basically this