15,918,808 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 Akhand Jyoti (Top 6 by date)
Akhand Jyoti
12-Jan-18 5:15am
View
Thank u so much.It works.
Akhand Jyoti
12-Jan-18 4:06am
View
Thank u so much for your advice.
Akhand Jyoti
9-Jan-18 7:19am
View
No,its working.
I m getting result as a Byte array,but not in the expected form.
I want result like:
bytes={ 0x01, 0x9F, 0x31, 0x4A }
Akhand Jyoti
8-Jan-18 4:33am
View
Thank u so much .This worked for me.I just got the data as Byte from the port and took into a string it worked.I got the expected output.thank u so much.
Here is the code.
int bytes = serialPort2.BytesToRead;
byte[] array = new byte[bytes];
int i = 0;
while (serialPort2.BytesToRead > 0)
{
array[i] = Convert.ToByte(serialPort2.ReadByte());
i++;
}
string s = BitConverter.ToString(array);
Akhand Jyoti
3-Jan-18 6:10am
View
hey i have tried this code work for that particular unicode srting.
I have a unicode string like.
string str="~\0\u0016?\0\u0013?\0AT??\\?\u0001#yfgyhvkh#?";
after doing the above operation i am not getting the converted string .please help me .Thank u so much in advance.
I should receive the data like:
7E 00 15 90 00 13 A2 00 41 54 EC 8E 5C 9F 01 23 31 32 23 31 32 23 52 23 0B
Akhand Jyoti
3-Jan-18 4:44am
View
Thank u so much for your reply.But this answer do not give what i want.
when i am converting asciiByte to hex i am getting the same result as previous.
after conversion of whole unicode escape sequence result should look like.
7E 00 15 90 00 13 A2 00 41 54 EC 8E 5C 9F 01 23 31 32 23 31 32 23 52 23 0B
Show More