|
-
Jun 28th, 2006, 02:48 PM
#1
Thread Starter
New Member
Winsock problem: Characters is replaced with codes
Hello. I have a program that use Winsock to receive mails.
The problem is that some characters in a mail the program receives is being replaced with a code or something. For example ¤ is replaced with =A4.
Last edited by Zigar; Jun 28th, 2006 at 02:52 PM.
-
Jun 29th, 2006, 05:36 AM
#2
Hyperactive Member
Re: Winsock problem: Characters is replaced with codes
Perhaps it's a problem converting unicode to ascii. If you transmit in unicode or ascii, and then convert back to ascii or unicode. The code can get messed up, since unicode has a much greater character range. I would use some string conversion, if that doesn't work then it's probably a connection error.
KAZAR
The Law Of Programming:
As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
__________________________________
www.startingqbasic.co.uk
-
Jun 29th, 2006, 01:44 PM
#3
Re: Winsock problem: Characters is replaced with codes
Looks to me like it's more of problem of MIME type. The program is assuming plain ASCII characters.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|