Results 1 to 3 of 3

Thread: Winsock problem: Characters is replaced with codes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    1

    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.

  2. #2
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    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

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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
  •  



Click Here to Expand Forum to Full Width