Questions tagged as 'unicode'

4
answers

Error trying to write accents in files with Python

I was trying to make a program in Python that could make changes to another .py file so I could change its code automatically. I was doing the following test in Shell before writing the program itself: >>> import os >>> file...
asked by 13.04.2017 / 20:57
1
answer

Migration with Foreign Characters?

The data is from a Firebird database and even opening with official tools the characters do not come in br format, for example: ÁGUA vem µGUA PÃO vem PÆO Find a site that, when entering a special character, for example µ...
asked by 26.03.2017 / 05:05
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
1
answer

Python utf-8 encoding error

Hello everyone, I'm new to Python programming, I'm creating a program that reads information from a text and transcribes elsewhere. Apparently the text was working normally on the computer, I uploaded all this information in github , wh...
asked by 18.12.2018 / 20:11
1
answer

Using Unicode in a variable char

How do I use unicode in C ? I just do not know how to store the 2 bytes of a unicode in a char, only this, does anyone know how?     
asked by 28.10.2015 / 03:57
2
answers

Is there any problem in using Unicode characters for identifiers in code?

Today, it is common for compilers of programming languages to allow the code file of their programs to accept code with Unicode characters. This is useful, especially for those who use Portuguese and other languages that run away from ASCII t...
asked by 21.05.2014 / 16:04
1
answer

How do I put strings of type 'char32_t' and 'char16_t' in the console in C ++?

In the new C ++ 17 they added the characters char32_t and char16_t , they also added 'u16string' and 'u32string', but they did not create any way to put them on the console screen. For example: int main() { std::u16string u1...
asked by 13.08.2018 / 03:19
2
answers

Convert utf-8 codes to unicode

Well, I have a JSON where all unicode symbols like this "★" are in this format: "\ u2605" have some way to convert those codes to the symbols when my program NodeJS read the JSON ? Example of how it is: {"name":"\u2605 Bayonet","pri...
asked by 24.08.2017 / 16:47
0
answers

Error in Django - Unicode Decode Error

When trying to create an App in Django with the command django-admin.py startapp Name , this command raises the following error: Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_...
asked by 12.07.2017 / 19:54
1
answer

Slim Framework simplexml_load_string parser error

My application sends a string in XML format to the server. $(function() { var xml = "<?xml version='1.0' encoding='UTF-8'?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder<...
asked by 12.07.2016 / 17:41