Click here to Skip to main content
15,889,877 members
Everything / Unicode

Unicode

Unicode

Great Reads

by Doc Lobster
String conversion using the C++ Standard Library only
by Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
by Gregory Morse
Rendering Qur'anic (complex Arabic) scripts with Unicode in a PDF
by Michael Haephrati
A Static Library which can be used for all kinds of database related needs

Latest Articles

by Member 15078716
Unicode / Creating, Writing, Appending / a text (*.txt) file - how to do it
by Michael Haephrati
A Static Library which can be used for all kinds of database related needs
by DebugST
Use [Unicode 14.0.0] version. Can support automatic code generation according to the latest version.
by honey the codewitch
Add UTF-32 support and easy foreach streaming to your apps

All Articles

Sort by Updated

Unicode 

3 Oct 2023 by Vicente Flich
We are planning to migrate an MFC project to WinUI 3. The problem we are faced with is the MFC project we have is developed in MBCS, not UNICODE. To avoid problems in the new WinUI 3 project, we consider to setup the project without UNICODE. ...
2 Oct 2023 by Rick York
JudyL_MD is correct but there are a few more details involved. Nearly all of the Windows API comes in MBCS and Unicode flavors. The function LoadLibrary is one example. That function actually does not exist. There is LoadLibraryA and...
2 Oct 2023 by JudyL_MD
This has nothing to do with WinUI 3. Use of the L prefix on a string is a feature of the C / C++ language, independent of any preprocessor defines. An MBCS program can need the ability to use a UNICODE string, say when talking to an API that only...
6 Aug 2023 by lvTH
Thanks for your suggestions, doing a more deep search I've found another sowftare (Bulk Rename Utility - Free File Renaming Software[^] ), which uses regex to specify find/replace of strings, so I can remove all Unicode chars, those NOT...
4 Aug 2023 by lvTH
Due to some user misbehaving I have now a Windows 10 pc where several files/folders have quite long names, and containing Unicode chars in a folder structure very deep (>10 levels) The problem is that even after applying "LongPathsEnabled"...
4 Aug 2023 by Andre Oosthuizen
Not my expertise in the least but I found this very interesting. Some research later I found the following, whether it will solve your issue completely, I am not sure but it might point you in the right direction. First of all, a warning from...
9 Aug 2022 by Member 15078716
I have the following. It shows up correctly in Microsoft NotePad. It does not show up correctly in Microsoft Wordpad. Using CodeBlocks 17.12 / MinGW with GCC 5.1 / 32 bit Microsoft Windows XP Pro sp2. __________ When I open the txt file with...
9 Aug 2022 by Michael Haephrati
The code should work, however your code has issues and errors (dwBytesWritten and hFile are undefined). Here is the fixed code. HANDLE hDFile = CreateFile(L"utf8_UsingByteOrderMark_C_天堂.txt", GENERIC_READ | GENERIC_WRITE, 0, NULL,...
6 Jul 2022 by Member 11228769
In the "Knytt Underground" game written in Python, ini files are used with English dialogue text (key = value - value is some dialogue phrase), when I entering the Polish character eg. ęąćź displays '?' What I have tried: I tried to type...
3 Jul 2022 by Member 15078716
I want to place what I read from a utf-8 *.txt file (with Unicode characters in it) to a MessageBox. (This is a further question after I received useful logic from you to the last question at ...
2 Jul 2022 by Daniel Pfeffer
It is possible to do this in standard C, but it depends on whether your compiler supports the UTF-8 character encoding. See the setlocale and mbstowcs functions for details. Once the data are converted to wide characters, you may use the wcsXXX...
2 Jul 2022 by CPallini
Quote: LPVOID lpBuffer; // An LPCVOID is a 32-bit pointer to a constant of any type. // This type is declared as follows: // typedef const void* LPCVOID; const char* pString_from_lpBuffer; ...
1 Jul 2022 by Member 15078716
Unicode / Creating, Writing, Appending / a text (*.txt) file - how to do it
30 Jun 2022 by Member 15078716
Since you are using Code::Blocks (undisclosed version), and since you are using Microsoft Windows (undisclosed version), and since you are using MinGW (undisclosed version) with probably GCC (undisclosed version), which all that is OK, then...
30 Jun 2022 by nxc121
HiI am really having trouble dealing with adding unicode support to my code, i have perfectly working ASCII code but then with entry of some chinese and korean charectors making it break. I tried on web to search for sample code or guide but there is no enough proper info so looking for...
29 Jun 2022 by Member 15078716
I have the following. It shows up correctly in Microsoft NotePad. It does not show up correctly in Microsoft Wordpad. Using CodeBlocks 17.12 / MinGW with GCC 5.1 / 32 bit Microsoft Windows XP Pro sp2. __________ When I open the txt file with...
28 Jun 2022 by Member 15078716
QUESTION: How do I write the file contents with a BOM? __________ Using CodeBlocks 17.12 / GCC 5.1 / Microsoft Windows XP . From my previous question on page Save file with unicode string in old windows system[^] "Quote: If I want to update...
27 Jun 2022 by merano99
For UTF-8 you code this: DWORD dwBytesWritten = 0; BOOL bErr = 0; TCHAR *fname = TEXT("A_Unicode_WriteSTuff_天_file.txt"); HANDLE hFile = CreateFile(fname, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);...
17 Jan 2022 by Richard MacCutchan
You need to change the file to UTF-8 or Unicode so it can keep the Polish characters. Notepad has options to convert it to a different encoding on the Save As option. I finally figured out how to write and read those characters in Python....
8 Jan 2022 by Michael Haephrati
A Static Library which can be used for all kinds of database related needs
8 Nov 2021 by DebugST
Use [Unicode 14.0.0] version. Can support automatic code generation according to the latest version.
28 May 2021 by shilky
Hi...I am using Sendkeys.SendWait method in my project for sending characters, using unicode code points, to the Office Applications in Windows XP, Windows Vista and Windows 7. In this method, the unicode code point for Devnagari Characters are working nicely but the unicode code point...
28 May 2021 by Member 15221608
How to send unicode text from VB6 application to other application: I found that VB6 Sendkeys and Windows keybd_event api do not support unicode character. However, I outline below a clumsy way to send out unicode strings from VB6 application...
25 May 2021 by mustafa uop dawood
when use WX.FileDialog of WxWidgets and select file name contain Emoji character path from WX.FileDialog return question mark inside box ??? such as this original path selected "/Users/Mustafa/Desktop/😀Test 😍.txt" but the path returned from...
29 Apr 2021 by Dr. Bhanu Murthy
I have text file processed output from Cpus programs. This text file I want to convert to local languages say telugu, hindi etc., Is there a solution for this. What I have tried: I tried in cplus program itself using wchar_t and wstring, but...
29 Apr 2021 by CHill60
As Richard has pointed out - you need to translate the document not just change the encoding. Google Translate is available as an API - Cloud Translation Google Cloud[^] but it is not free (nor particularly expensive) There are other similar...
22 Oct 2020 by Avtem
(My IDE is Visual Studio 2019) So, the question is about the macro UNICODE. Which works fine if there is only one source file in the project. However, if there are multiply source files, and UNICODE macro is defined only in one of them, linker...
22 Oct 2020 by Richard MacCutchan
You can define it in the Project Properties in the Advanced -> Character Set box. This will ensure that all source files will be compiled with /D "UNICODE" as standard.
22 Oct 2020 by CPallini
Quote: Do i have to define UNICODE in every single source file? Yes, you have to. You might, however, define it as a compiler option, see /D (Preprocessor Definitions)- To set this compiler option in the Visual Studio development environment |...
25 Jul 2020 by Rick York
This should work const wchar_t * wstring = L"some wide string"; wprintf( L"%s\n", wstring ); for a string. For a single character try this : wchar_t wideChar = 0x1234; wprintf( L"hex: %04X char: %c\n", wideChar, wideChar );
25 Jul 2020 by Lachy 314
I'm using C++ on windows and I'm trying create some code that will allow me to input and Unicode character code, then output that character to the console. I'm well aware of the issues associated with Unicode and the console, however that is not...
24 Jul 2020 by OriginalGriff
variable isn't a unicode character - it's string of 4 characters. You would need to convert that to a wide character before you output it, and that means you need to think about what that string represents: a number, a value, a hex value, or...
5 Jun 2020 by phil.o
I just wonder why you are trying to "detect" unicode anyway. .NET strings are internally using unicode representation. As long as the names are stored in the database using unicode as well (nvarchar), you shouldn't even bother detecting anything...
5 Jun 2020 by Eek Ten Bears
Sorry this is a bit complex to explain but its really a very simple question....just point me at the right web-site. I am using SSIS to write a set of n data files from a database. Simplifying a hell of lot I divide very big SQL data sets...
14 Apr 2020 by Richard MacCutchan
I have had a similar problem with simple Messagebox calls, when the WM_PAINT handler does not call the BeginPaint / EndPaint sequence. You may like to check if that is a possibility. [edit] // CPP implementation file void...
14 Apr 2020 by MickFarrell
Hi, This problem has me pulling my hair out?? I have an application that doesn't display text for some users. I cannot replicate the problem as it works fine for me. I did discover that if I run the application as an administrator the problem...
14 Apr 2020 by steveb
Do your other 15% users use computer language configuration set to EN(US)?
2 Feb 2020 by honey the codewitch
Add UTF-32 support and easy foreach streaming to your apps
21 Jan 2020 by KarstenK
Unocode support is mostly a project setting. So you better read in the manual or some support documents. At last you could contact the vendor of this rarely used product.
21 Jan 2020 by Member 14367686
hi i need to make unicode "korean" language type but when i read "가" by byte type char was B0 A1 . it seems KSC5601 type ( B0A1 ~ C8FE ) but i need to get AC 00 how can i read my data by unicode type? my project is on Coocox COIDE (Arm) - C Language i tried wchar_t type && char type of...
10 Dec 2019 by User 11060979
The problem is, that Graphics.DrawString will not find the Glyph in "Times New Roman" an for "Times New Roman" no "fallback" is defined. One thing you can do is to add a "fallback font" for "Times New Roman" in the registry, btw from my point of view not a nice solution. For this, add another...
10 Dec 2019 by auto9817
There is a great article about unicode manuplation in csharp. http://csharphelper.com/blog/2014/09/explore-unicode-characters-c/[^] Also the above link provides binary executable which you can print available unicode characters in the font "Times New Roman". However, when I try to draw this...
7 Dec 2019 by Richard MacCutchan
The square symbols are merely substitutes for Unicode characters that have no equivalent in the selected font and character set. This is quite common when printing non-latin alphabets.
19 Sep 2019 by iDebD
Hi, I have a TStringGrid; When am writing in the grid, it is showing ????? ????? instead of showing و ویکیپیڈیا .The string which I am setting in TStringGrid is in Unicode, as if I can show it via messagebox;Following code setting unicode string:with frmhook.sg do begin if...
19 Sep 2019 by Member 14597783
Remember to check the "font" being used in the TStringGrid. Example: 'MS Sans Serif' does not work!
10 Sep 2019 by manojmanpal1
I do not think there is need of alternative header files. I am able to make it work as prescribed in RapidJSON documentation - http://rapidjson.org/md_doc_encoding.html. wstring(wchar_t) is UTF16 in windows so with typedef i am able to use. Here is the code sample: typedef...
9 Sep 2019 by Zon-cpp
Hi, I used rpidjson header-only files in my VC++ (MFC) project to parse json strings. I Used from this link: GitHub - Tencent/rapidjson: A fast JSON parser/generator for C++ with both SAX/DOM style API[^] My problem is unicode characters. I should set my VC Porject setting to "Use Unicode...
12 Aug 2019 by perogr
I read a big txt file with greek characters (in Notepad++ says that is ansi encoding) and I break it in shorter txt files. The most of the files are ansi but some files are not ansi. This is crazy but it happens every time I tried . What I have tried: the code is objStreamReader = New...
12 Aug 2019 by Maciej Los
perogr[^] wrote: The 28597 code page is for iso-8859-7, I think that it is greek ansi. No. A ISO/IEC 8859-7 (Windows-28597)[^] is used for Latin/Greek. A Windows-1253[^] code page is used for Greek-ANSI. Wiki wrote: Windows code page 1253 ("Greek - ANSI"), commonly known by its...
9 Aug 2019 by Gerry Schmitz
If you're just "streaming", there's no need to be concerned about "encoding". The "text" contains Greek Unicode or it doesn't. Use the correct Font for the range of codes and it will display properly; otherwise not. That's it.
2 Jul 2019 by Member 14518396
Hi guys I am having an issue where my contact form returns results in a different text format and I was wondering if there is perhaps anything wrong with my header in my contact form php. I get results such as: цветник на могилу цветник на могилу (Example email...
13 Jun 2019 by varsh12
I want to store the count in unix and based on that send on email, if count is greater that 50. Select count(*) from temp1; Please suggest. What I have tried: I want to store the count in unix and based on that send on email, if count is greater that 50. Select count(*) from temp1; ...
13 Jun 2019 by MadMyche
UNIX is an operating system; not a program. You would need to install or create a program onto the UNIX machine that can talk to the SQL Server. If you are using Oracle as the DB, you could try SQL*Plus SQL*Plus Quick Start[^]
24 Aug 2018 by Jochen Arndt
The problem is sourced in your sendCommand() function because that does not return a valid Java String (UTF-16 encoded). The received data are bytes. So you have to use a byte buffer for receiving. Untested example from scratch: // Assuming knowing the max. response length for simplicity...
24 Aug 2018 by Member 13958412
I am having a problem for the Unicode conversion. The main problem was the String parameter passed was something unsupported characters. Here is the sample of the code: I have a batch script which will be executed on a server. By the meantime, execution status log should be provided. This...
20 Jun 2018 by Amir No-Family
Simply use: var output = System.Net.WebUtility.HtmlDecode(text);
20 Jun 2018 by Member 10518995
I want to convert from Unicode to its original format UTF8 I think and it could be arabic like below. The user types some unicode text and when he clicks on convert it'll be converted to the original format like below : string unicode ="\u0633\u0637\u0648\u0631 \u0639\u0628\u0631...
25 May 2018 by Member 9694841
Need to aplly font according to the Language.Use formula to apply fonts
25 May 2018 by star_tasneem
Dear all,I have been assigned to handle unicode in crrystal reports in VS 2008 with version of Crystal Reports 10.5.0.0.I have to handle 'Bengali language' in the reports. The headers will be in the Unicode format(Bengali) but the data retrieved from database can remain in English.The...
1 Mar 2018 by Richard MacCutchan
See 7.2. codecs — Codec registry and base classes — Python 3.6.4 documentation[^].
1 Mar 2018 by TUD111
I am trying to open a csv file in python 3 and when ever I do it says (Unicode error)'unicodeescape' codec can't decode bytes in position 2-3: truncated /UXXXXXXXX escape It highlights the ( after open/ before 'C:\Users\Me\Desktop\csv file.csv' I'm not sure what the error is since I don't know...
28 Feb 2018 by murlikrishna
content.replace('\u0002',' ');// doesn't do what you want, content = content.replace('\u0002',' ');// will replace 0x2. Special credits and Thanks, Devpuh and Heney for providing solution at Actual Solution
12 Jan 2018 by jessiefun
There is some problem while I want to export data to csv file: public void ExportLoalDataToCSV(DataTable dt, string fileName) { FileStream fs = new FileStream(fileName, FileMode.Create); StreamWriter sw = new StreamWriter(fs, Encoding.Unicode); ...
12 Jan 2018 by Michael Haephrati
The solution I have found to similar problems was to insert a BOM character to the .CSV file to indicate its encoding. CSV and BOM character - CSV[^] If you even inserted a UNICODE character to a Notepad file, and tried to save it, you would have seen a warning that the contents of the file will...
11 Jan 2018 by gokings
SEEKING ADVICE REGARDING CONVERSION TO UNICODEWHY I AM ADOPTING UNICODE SO LATE[Feel free to skip to "The Situation", below, but if you do, please don't flame me for "waiting so long".]I'm a former professional software engineer and programmer.I was "away" from programming for...
11 Jan 2018 by Michael Haephrati
Here are most of the stages you need to take when converting an old project (defined as Use Multi-Byte Character Set or Not Set in Project -> Properties -> General -> Character Set. First you set this attribute to Unicode. 1. You will then have to change any hardcoded string to from...
16 Dec 2017 by JustWatchLittle
c# strings are Unicode strings. It represents text as a sequence of UTF-16 code units. Read e.g. this: String Class (System)[^] [Edit] Not a short read, but to understand unicode, you most probably Need to go through several articles liek this: Unicode and You – BetterExplained[^] [Edit1]...
15 Dec 2017 by Ахих Тиманов
I have text "Привет" and i want convert it to Unicode var str = "Привет"; Encoding unicode = Encoding.Unicode; byte[] unicodeBytes = unicode.GetBytes(str); var rez = Encoding.UTF8.GetString(unicodeBytes).ToString(); In VS debugger i see this result https://i.snag.gy/yRP9pJ.jpg But in...
21 Nov 2017 by ali_1
Hi All, Inertion failed to while passing a large string to SQL query String as follows: %PDF-1.6 %���� 69 0 obj > endobj 75 0 obj >/Filter/FlateDecode/ID its having around 7 lakhs...
21 Nov 2017 by Richard Deeming
Simple: string readText = File.ReadAllText(@"D:\olefy001.txt"); using (SqlCommand cmd = new SqlCommand("insert into FileContent values (@ReadText)", con)) { cmd.Parameters.AddWithValue("@ReadText", readText); cmd.ExecuteNonQuery(); } Everything you wanted to know about SQL injection...
21 Nov 2017 by Patrice T
SqlCommand cmd = new SqlCommand("insert into FileContent values(" + readText + ")", con); Not a solution to your question, but another problem you have. Never build an SQL query by concatenating strings. Sooner or later, you will do it with user inputs, and this opens door to a vulnerability...
17 Nov 2017 by ali_1
I need to insert a text file with unicode characters . Its not inserting completely !. My file having aroud 7 lakhs unicode characters. I need to insert it through SQL without using any programming technilogies. I need to insert it through SQL query Can anyone suggest a solution ? I am using...
17 Nov 2017 by RedDk
Try: BULK INSERT Filecontent FROM 'myfilepath' WITH (DATAFILETYPE='widechar', FIELDTERMINATOR='none' );
19 Oct 2017 by Richard MacCutchan
for (i = 0; items[i] != 0; i++) // for each entry in the array { int j; for (j = 0; j
19 Oct 2017 by Member 13474080
I want the computer to analyse what I have written and print the number of asterisks corresponding to the number inputted. I can only manage a piece of code that can read what I have inputted. I can't use arrays but can use loop instructions like jnz and conditional instructions like cmp. What...
19 Oct 2017 by Rick York
Firstly, I see no reason to use asm in there at all. Everything you are doing can be done in C. To your question, you have a do-while loop there getting the data and counting how much you have. Why can't you make another do-while loop to output the data? One more thing - you have this tagged...
3 Sep 2017 by User 10734264
declare @text nvarchar(max) ='सम्पति' select @text the output is ?????? What I have tried: How to see exact text typed.
3 Sep 2017 by OriginalGriff
That's because although @text is NVARCHAR, the string 'सम्पति' isn't - its VARCHAR. Try this: declare @text nvarchar(max) =N'सम्पति' select @text The "N" prefix tells SQL it's a NVARCHAR constant.
30 Aug 2017 by Simon Boutin
I use a RichTextBox in C# (.Net) where I need to replace each "*" and "+" by other Unicode chars (\u2605 and \u271A). It works fine, but the problem is when I copy content from MS Word and paste it to the RichTextBox, my two Unicode chars are replaced by "Square" ([]), not just for the pasted...
5 Jul 2017 by BReinhart
First, I am using C++ Builder. I have a method in a class that loads a file into various structs. One of the fields in the struct is defined as, for example: typedef unsigned short namechar; struct MyStruct { int id; namechar name[32]; }; The code uses a for loop to go through all of the...
5 Jul 2017 by BReinhart
Ok, I got it to work. The solution I used is: for (int i = 0; i Items->Add(s); }
12 Feb 2017 by Kodeeswaran V Duraisamy
nothing fired! I'm trying to debug, but no event is occurred while i put a unicode char.
1 Feb 2017 by Michael Haephrati
I am using CppSQLite3 as a wrapper of sqlite3 because it allows passing UNICODE strings and because it supports UNICODE in general. Is there an CppSQLite3 function which is similar to sqlite3_exec() in the sense of allowing passing a callback function?sqlite3_exe is declared as...
1 Feb 2017 by Daniel Pfeffer
As you have the source code for CppSqlite , you could always write an additional (Unicode) method as follows:SQLITE_API int sqlite3_execW( sqlite3*, /* An open database */ const wchar_t *sql, /* SQL to be evaluated...
25 Jan 2017 by 잔리나
Hey please help me! When I add data as in Khmer Unicode to column in SQL Server 2012 through TextBox in C#, it shows ??? but when I type Khmer Unicode direct in SQL Server Column it shows Khmer Language. So can anyone help me please to input data as Khmer Unicode through TextBox in C# and show...
25 Jan 2017 by #realJSOP
Make sure your parameter and field types match (and they should be NVARCHAR).
8 Nov 2016 by User 10734264
var jsonString = String.Empty; context.Request.InputStream.Position = 0; using (var inputStream = new StreamReader(context.Request.InputStream)) { jsonString = inputStream.ReadToEnd(); }i have read the data using above method...
6 Nov 2016 by yetibrain
Unicode Buddy is a tool to inspect unicode files. It can detect orphaned surrogates and invalid utf-8 sequences. It is able to show the encoding/decoding of a certain codepoint. It is not an editor but a viewer.
29 Sep 2016 by Srinubabu Ravilla
I am unable to create XElement with the string which contains the unicode.Below code is failing to create XElement. How can I create an XElement with the unicode.XDocument xDoc = new XDocument( new XElement("Pubs", new XElement("Book", ...
29 Sep 2016 by #realJSOP
You have to escape Unicode characters with &# when using them in XML.Google is your friend.
11 Aug 2016 by Nathan Henry
I am exporting unicode data using Php COM. I have written in top of my web page the below line:But when I export the unicode data into a word document using Php COM, It is not coming properly like a unicode, Instood it is...
11 Aug 2016 by Richard MacCutchan
That is because Word is using the default font and character set to display the characters. You need to add information to tell it which font and language to use.
19 Jul 2016 by Spacez Ly Wang
'm just beginner of Java.I'm trying to unicode (display) correctly Myanmar texts on Java GUI ( Swing/Awt ).I have four TrueType fonts which support Myanmar unicode texts. There are Myanmar3, Padauk, Tharlon, Myanmar Text ( Window 8 built-in ).You may need the fonts before the code. Google...
10 Jun 2016 by Sergey Alexandrovich Kryukov
After the discussion over Solution 1 (please see):Now when we know the original code page, one possible work-around could be using Microsoft AppLocale utility:AppLocale — Wikipedia, the free encyclopedia,http://ntu.csie.org/~piaip/papploc.msi,Microsoft AppLocale 1.3 Download (Free) —...
10 Jun 2016 by User 11060979
Dear ExpertsNot a programming question, more a technical Problem.I have a legacy application (background process) that does not support Unicode. So to print documents in Chinese language I setup region settings “Language for non-Unicode programs” of W2012R2 to use “Chinese (Simplified,...
9 Jun 2016 by Sergey Alexandrovich Kryukov
This is a very unpleasant problem, but, most likely, not hard to solve. I would start it from the detection of what is that encoding. I don't know which one is the most likely, but I know quite a few ones for Chinese, Simplified or Traditional. Based on that information, you may start looking...
16 Mar 2016 by Torakami
Hi , I am trying to send Unicode characters to procedure var employess = db.spEnqGetEmployeesOfUser(filter.LogUserID, filter.StartIndex, filter.EndIndex, filterText, sortText).ToList();Below is what i am sending in filtertext :- EmployeeName LIKE N'%लोपे%'CREATE PROCEDURE...
16 Mar 2016 by Andy Lanng
It could be that SQL Profiler is unable to read that char while SQL itself is ok with it.Check that it actually doesn't work by creating an empty table and inserting unicode into it. Check on the DB if it works.You can send unicode chars in an array instead. You'll need to know the...
11 Feb 2016 by Jochen Arndt
This is mainly a solution to the question raised in solution 1.When a file is opened in an editor, that tries to identify the encoding. With Unicode files, there may be a Byte order mark - Wikipedia, the free encyclopedia[^]. If that is present, the editor knows the encoding.If there is...
11 Feb 2016 by Marko Ilic
The problem was that I was saving the CPP file as ANSI... I had to convert it to UTF-8. I tried this before posting but VS 2015 turns it into ANSI, I had to change it in VS so I could get it working.I tried opening the cpp file with notepad++ and changing the encoding but when I turn on VS...