15,903,012 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Himanshu Kimni (Top 8 by date)
Himanshu Kimni
14-Apr-15 5:57am
View
Thanks for your suggestion Richard. Can you please help with this. How can we make a regex pattern to search UTF in an string.
Himanshu Kimni
14-Apr-15 5:45am
View
string utfString = "déj\xa0(’)";
// Create two different encodings.
Encoding ascii1 = Encoding.ASCII;
Encoding utf = Encoding.UTF8;
// Convert the string into a byte array.
byte[] utfBytes = utf.GetBytes(utfString);
// Perform the conversion from one encoding to the other.
byte[] ascii1Bytes = Encoding.Convert(utf, ascii1, utfBytes);
// Convert the new byte[] into a char[] and then into a string.
char[] ascii1Chars = new char[ascii1.GetCharCount(ascii1Bytes, 0, ascii1Bytes.Length)];
ascii1.GetChars(ascii1Bytes, 0, ascii1Bytes.Length, ascii1Chars, 0);
string ascii1String = new string(ascii1Chars);
// Display the strings created before and after the conversion.
Console.WriteLine("Original string: {0}", utfString);
Console.WriteLine("Ascii converted string: {0}", ascii1String);
Console.ReadLine();
But despite of giving output "déj\xa0(')", it is giving wrong output as "dAcjA (â?T)"
Himanshu Kimni
14-Apr-15 5:10am
View
Thanks for your comment Richard. Can you please provide me a sample code.
Himanshu Kimni
7-Apr-15 5:38am
View
Thanks for your comment. Basically I am looking forward for the entity conversion option through which I can convert the UTF-8 entities to hexadecimal/character/html entity.
Himanshu Kimni
2-Apr-15 10:24am
View
I was coded by me many years ago and I have tried to re-write the code but there are some functions which I need to re-use, that is the reason I am looking for some decompiler.
Himanshu Kimni
2-Apr-15 10:17am
View
http://www.thice.nl/perl2exe-back-to-perl-2014/
The above link states that this is possible but I got struct between the binary digits, my head got heated.
Himanshu Kimni
2-Apr-15 10:13am
View
Richard, Tried a lot but unable to find one.
Himanshu Kimni
2-Apr-15 9:54am
View
Thanks Richard, Do you have any idea of such program?
Show More