Questions tagged as 'utf-8'

1
answer

How to compress a string for sending in a JSON object field

Hello, I'm developing an API in java, which returns a JSON object. One of the final json fields is long text, of unknown size. The text may or may not contain special characters. I am sending the raw information in a string. But as the...
asked by 05.02.2018 / 15:31
1
answer

Accents with QString in Qt 5.9 results in bizarre characters

Hi, good afternoon, I'm with a doubt that I can not fix at all the code is as follows .... QTextStream stream( &file ); stream.setCodec("ISO 8859-1"); stream << "<p align=center><font size=4...
asked by 09.12.2017 / 18:15
1
answer

Convert table data to UTF8

In my table there are characters in Japanese, Korean and Chinese, but they are not converted, when I echo with php, so it shows ?????? , In my doubt would be, how can I convert the DATA of this table? the table is already in utf8_...
asked by 16.11.2017 / 15:48
0
answers

Reading a special char type using locale does not work. How to correct?

I'll give you a simple example to explain my doubt: #include <stdio.h> #include <conio.h> #include <locale.h> main(){ setlocale(LC_ALL,"Portuguese"); char a; printf("Insira um caractere especial,\nExemplos: ç,...
asked by 25.08.2016 / 06:19
0
answers

Gson returning characters with invalid accent

I'm getting information using Gson in a PHP file. When this information is received, words containing accents are not encoded. I already read: Android JSON CharSet UTF-8 problems Converting String to Android JSONObject loses utf -8...
asked by 06.08.2016 / 20:29
0
answers

SoapClient - Problem with encoding (Invalid byte 2 of 3-byte UTF-8 sequence)

I am making a request to a webservice with PHP (SoapClient), and when I have special characters, error / deformation is occurring. What I've already tried: Set the parameter 'encoding'=>'ISO-8859-1' or 'encoding'=>'UTF-8'...
asked by 18.08.2016 / 16:36
0
answers

I can not modify the encoding of my charts in Google Chart

I'm trying to change the encoding of my chart I made using Google Charts with data coming from a json file. I already changed contentType of $.ajax() but nothing happened. The graph is displayed correctly, the only defect is the le...
asked by 06.10.2015 / 17:40
1
answer

Problems with SQL enconding x PHP [duplicate]

I have the following problem: My files are leaving with accentuation problems, my tables use utf-8 as encondig, the html files have the markup for utf-8 and even then the accents do not work: <html> <head> <base href="http...
asked by 05.06.2018 / 14:24
2
answers

Encoding problems

I have a coding problem that I can not solve. I've tried several suggested things, but none works: Script: # -*- coding: utf-8 -*- import sys line = ["Oi tudo bem com você","eu GOSTO de café", "esta situação é Terrível"] def sup...
asked by 10.07.2018 / 12:48
3
answers

How to solve this encode conflict in php?

Personally I have the routine below that makes the listing of files of a directory: if (is_dir($dir)) { $dh = opendir($dir); while (($file = readdir($dh)) !== false) { if (!in_array($file, array(".", ".."))) { $...
asked by 28.06.2016 / 21:49