Questions tagged as 'character-encoding'

2
answers

Linebreak encoding (\ n) in Javascript alert ()

Hello, I need to make a replace in the string </script> by transforming it to the string \n . The problem is that unfortunately my PHP project is with charset=ISO-8859-1 , while javascript runs with UTF8 . Wh...
asked by 17.09.2014 / 19:42
1
answer

Special Characters in StreamWriter with Encoding.ASCII C #

I am writing to a file via StreamWriter using Encoding.ASCII encoding. A situation appeared in which I need to write the letter "Ç". But if I try to do this, the file exits the "?" Character. In this case, I need to use this encoding (I can n...
asked by 02.10.2015 / 14:22
1
answer

Emphasis on cmd return

Considering a method to list the files of a folder using ProcessBuilder I have the incorrect return of the accented words. Code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import jav...
asked by 27.11.2016 / 07:36
2
answers

Send UTF-8 email through ASP with CDONT

I'm trying to send a form to an email using CDONT, but the charset is arriving incorrect and is not displaying the accented characters correctly. <% Response.ContentType = "text/html" Response.AddHeader "Content-Type", "text/html;charset=UT...
asked by 10.04.2015 / 15:01
2
answers

C # - XML return from WebService with coding error (ISO-8859-1)

I have a Windows Forms application that is consuming a WebService that returns an xml (string) with ISO-8859-1 enconding. However, the answer comes with question marks (?) instead of accents. How do I convert or read to ISO-8859-1, so that...
asked by 01.12.2015 / 19:45
1
answer

How to transfer a file with a corrupted name?

A client of mine has a problem uploading to my system, and from what I can tell is his file that has the name corrupted (it is relatively common, on Windows systems, the name or accented with foreign characters display correctly in Windows Explo...
asked by 20.05.2015 / 00:08
1
answer

How to make the p: editor of primefaces escape the special characters typed by the user before writing them?

I'm using the component of primefaces. My problem is that it is recording the accents that the user types in the text without doing the proper escaping HTML. Is it possible to change this so that he knows that the letter is an accent and needs...
asked by 16.04.2015 / 15:59
1
answer

How to find the original encoding of a filename (or any string)? [closed]

I have a series of files that appear to have been generated on different operating systems, since the character encoding of their names seems to vary between them. There are names whose accents usually appear to me, both on OSX and Linux (wit...
asked by 21.01.2016 / 14:19
1
answer

How to format the day of the week so that no symbol appears in PHP

How to change the symbol that appears on Tuesday by a Ç ? Mycodebelow:<?phpsetlocale(LC_ALL,"pt_BR", "pt_BR.utf-8", "portuguese" ); date_default_timezone_set('America/Sao_Paulo'); echo ucwords(strftime("%A ")); $dt = date...
asked by 22.08.2017 / 17:14
1
answer

Problems with accentuation when reading JSON file data

The method below is extracting data from a JSON file, to populate a DropDownList. public static List<Uf> GetAll() { var client = new WebClient(); JsonSerializerSettings settings = new JsonSerializerSettings(); settings.Culture = ne...
asked by 10.10.2016 / 21:30