кодировка

Convert std:: string to std:: wstring

How do I translate std::string to std::wstring? Admit: std::string s = "some string"; std::wstring ws = f(s); How can f() be implemented?

Python - problems with utf-8 encoding

How do I get python to work with utf-8 encoding? The file.pyc file is generated (or not generated, I didn't understand it my ... blem still turned out to be in Apache. The solution was found tut AddDefaultCharset UTF-8 SetEnv PYTHONIOENCODING utf8

Visual Studio 2012 Encoding

I'm building a project that contains an error. Instead of the error description, it appears: 1>MSVCRTD.lib(crtexe.obj) : e ... ЁрчЁх°хээ√ї тэх°эшї ¤ыхьхэЄют: 1 What can it be, how can I configure it (so that the encoding is normal English or Russian)?

The Json response in" incorrect encoding " displays Russian characters

Good afternoon. The Json response in" incorrect encoding " displays Russian characters. If the characters are English, then e ... ollowing characters: \u0418? Although then everything is displayed well in JavaScript, but I would like to remove it. Thanks.

How do I set up the correct encoding for MySQL?

Here... I'm learning PHP. I reached the connection to the database. And here's the problem. In the *.php file, I register a c ... irl needs programming here. We have already talked about this issue. I study - so it is necessary. Thanks for understanding:)

Setting the UTF-8 encoding for the current MySQL connection [duplicate]

This question has already been answered here: ... same table using PDO, when setting the encoding: $db->exec('SET CHARACTER SET utf8') The fields were returned in UTF-8.

Problem with Cyrillic in php

The project is being developed in utf-8 encoding. Faced with the problem of processing strings with Cyrillic characters. Code ... olni I.e. the function does not work for the Cyrillic alphabet. What should I do to get "Add" instead of "Add"in the output?

Windows-1251 vs UTF-8

I create websites using my own PHP engine developed somewhere in 2007, which has since undergone all sorts of modifications a ... there any advantage at all? And another question, please tell me how to correctly switch to UTF-8, including MySQL database?

Encoding error in Python: readline () when reading utf-8 file swears: 'charmap' codec can't decode byte

I'm trying to read the ports file from IANA. It is stored in UTF-8 w/o BOM encoding. But on one of the lines, the function re ... e True: line = file.readline() if(not line): break print(line) finally: file.close()

Changing the encoding when parsing

Here lies the parsing script: The situation is as follows: The site that is parsed, it has UTF8 encoding, and the parsing ... to win1251? Now when inserting a script on the site, it is not clear what is output. I would be very grateful for your help.

The difference between binary and byte code?

Guys, I honestly Googled(though from the phone) for 40 minutes. The binary code is (conditional example 0101110010) Bytecode ... a-> bytecode->machine code Question binary code and bytecode are the same thing???? If not...then more details please

Some strange text from the file

It is necessary that the program outputs the text from the file in which I wrote something. Here is the code: FILENAME = " ... PS RR SR°R±RS R°RS'( If anything, I use PyCharm Community. The text file was created in the same place as the .py file.

Rstudio: Cyrillic alphabet is displayed incorrectly in the script

I downloaded a script containing the Cyrillic alphabet. When opening in Rstudio, there are incomprehensible characters instea ... астоты). hist(data, plot = TRUE, freq = TRUE, col = "darkviolet", ylab = "Частота", xlab = "Рнтервалы")

Encoding problems when parsing CSV with JS

I created a table in excel, saved it in csv format (comma delimiters). The content is in Cyrillic. I'm trying to read it with ... ncoding to utf-8. You can somehow correctly convert the result of reading csv without dancing with a tambourine (notebook)?

Changing the locale doesn't work

#include "stdafx.h" #include <iostream> using namespace std; void Plus(){ int long a,b; cout << "Введите первое ... Ymnojit(); } if (a == 4){ Podelit(); } system("pause"); return 0; } setlocale(LC_ALL, "Russian"); - it doesn't help.

Problem with the implementation of the "Grasshopper" cipher"

Hello everyone I'm writing an encryption program. I read the data from the file, turn it into an array of bytes, divide it in ... ); a<<=1; if (hi_bit<0) a^=0xc3; b>>=1; } return c; }

Different encodings in href and value

Good afternoon! Faced with an unknown bullshit: var_dump($login); var_dump($pass); echo "<a href ='$login $pass'>$login ... t", type:"post" }; $("#myForm").ajaxForm(options); }); </script> </html> '; }

Question about python and base64 encoding

Hi everyone, I have a question. I was writing the code, and it was supposed to get a link to the image. But this link was, as ... de(a) print(b) png_recovered = b.decode('UTF-8') return png_recovered image = abstract('Andrei') print(image)

Converting Windows-1251 encoding to Koi8-R

Please suggest or direct: how to translate Windows-1251 encoding strings to Koi8-R

How do I determine the encoding of a string and convert it to utf8?

Through imap I connect to the server and get a list of messages. The problem is in the encoding of the message body - in гугл ... \u0435\\u0440\\u043a\\u0430 \\u0441</div>' Returns the error TypeError: decode() argument 2 must be str, not bytes