Questions tagged as 'character-encoding'

1
answer

Problem when doing encode and decode of String

I would like to know why such methods do not behave in a way that:    long2str (str2long (String s)) == String s public long[] str2long(String s){ final byte[] authBytes = s.getBytes(StandardCharsets.UTF_8); final String...
asked by 02.12.2014 / 11:02
1
answer

In pandas and unidecode, how to avoid warning messages - copy of a slice from a DataFrame?

In Python3 and pandas I'm reading CSV files to create dataframes. In some columns I need to remove the accent (Portuguese). I do this with unidecode But in some files a warning message appears import pandas as pd import unidecode def f(str...
asked by 02.03.2018 / 15:03
1
answer

btoa javascript and base64_decode php

I'm passing a string in javascript / jQuery using btoa (), the code looks like this: <script> $(document).ready(function(){ $("button#btnGravarDados").on('click', function(){ var codigoDadosPessoais = $("#codigoDadosPessoais").val(...
asked by 07.12.2017 / 11:56
1
answer

How to get the encoding type of a file?

Follow the code below: string text = File.ReadAllText($@"{pathname}", Encoding.UTF8); I have several txt files with different conditioning. Because here does not show special characters, because of different encoding. Before running the...
asked by 02.11.2017 / 21:33
1
answer

How to solve wrong spreadsheet export xml

I have a form that receives some registration and is transmitted to another page via ajax that does the insertion in the database. The problem is that at the time of receiving, if I do not use utf8-decode on the variable where it has accent will...
asked by 08.08.2017 / 19:38
1
answer

Problems with static page encoding

I have an html file sent from a Node.js server that can be accessed here that is having problems with the accent . They were working normally, however, after a minor update, he had this problem. When I open it with localhost, it works, but...
asked by 07.06.2017 / 22:10
2
answers

I can not apply Encoder in the text to correctly appear "ç, accents, other special characters"

Hello, I need to collect information from the station, and I'm getting it. But in the received text I can not apply an Encoder to appear the special characters correctly: I'vetriedusing"ISO-8859-1", and other forms of encode too string...
asked by 28.04.2017 / 19:25
1
answer

Problems with accentuation - Python

Hello, I have problems with accentuation in Python. In the code I put this: # - - coding: UTF-8 - - But the accents are not recognized in cmd. Follow the print for better understanding. Thanks in advance!     
asked by 20.11.2016 / 01:09
1
answer

Value (input) encoding format

Problem: I am passing the value of an input to a frame but the encoding format does not stay as it should - charset = ISO-8859-1 Trying this: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="...
asked by 26.02.2016 / 17:03
1
answer

Java command to ignore Encoding

I have the following situation, I work with software A vehicle sales, it has the opportunity to sell and it has a media (as the customer was aware of the opportunity), in addition to store opportunities, software A receives information from a ve...
asked by 13.01.2016 / 18:11