Results 1 to 6 of 6
  1. #1
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Gillingham, Kent, England
    Posts
    511
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Invalid characters in an iCalendar object (Notepad(?))

    Hi,
    I have attached a file with 2 characters in it. In notepad with Terminal font selected, the show as a negative image 'o' and a char like a piano note. Most other fonts they just show as 2 squares.
    I know they form some sort of carriage return, but I find and replace all chr 13 with n which is the iCalendar method of carriage returns.

    Would anyone happen to know their Ascii value?

    The main problem is that I send iCalendar items (.ics) from a VB app to people email client and rogue characters stop the calender object from importing. I'm trying to find a list of invalid characters, and if they have them, their iCalendar equivalents (i.e. char(13) = n). Any help with that would be great too as i'm running out of ideas to search for!

    Regards,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Invalid characters in an iCalendar object (Notepad(?))

    It would seem to be ASCII 10 (line feed) followed by 13 (carriage return) from the display, but when I run some code to determine the ASCII codes, I get 10 and 32 (space).

  3. #3
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invalid characters in an iCalendar object (Not

    Don't know about other Loungers but your attachment shows up as completely blank for me - both in Firefox & IE - even when I set all my Font preferences to terminal. This may be something to do with the fact that you're posting a text file - which may be affected by browser software. Although it may sound like overkill, can you try posting the text file inside a zip file. That way, it can be downloaded and opened in a text editor. HTH
    Gre

  4. #4
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Gillingham, Kent, England
    Posts
    511
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invalid characters in an iCalendar object (Not

    Thanks for your replies, i'm just having a look at my original code to find out exactly what it replaces with n I'll post back when i've found the code in question.

    I've attached the .zip as requested. It's almost funny how a couple of little characters can cause so much trouble <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Invalid characters in an iCalendar object (Not

    To get a cursor into the document, and to see the characters, I had to save the file and open it directly in Notepad.
    -John ... I float in liquid gardens
    UTC -7DS

  6. #6
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Gillingham, Kent, England
    Posts
    511
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invalid characters in an iCalendar object (Notepad(?))

    The code i'm currently using replaces 13 and 10 with n
    FindReplace(iDESCRIPTION, Chr(13) & Chr(10), "n")

    I was under the impression, when a user presses return/enter a 13/10 combo was inserted in that order, would anyone happen to know how they've managed to add them in differently?
    The most likely event is that they've copied the description from an email or a field in Access.

    In the mean time, i'll change my code to remove all chr(10) and chr(13)s after its initial find and replace to see what is returned then. I'll post back when i've done that and let you know how it went.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •