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

    Home » Forums » AskWoody support » Productivity software by function » MS Outlook and email programs » Invalid characters in an iCalendar object (Notepad(?))

    Author
    Topic
    #425538

    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,

    Viewing 1 reply thread
    Author
    Replies
    • #980669

      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).

      • #980682

        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.

    • #980670

      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

      • #980676

        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 laugh

      • #980677

        To get a cursor into the document, and to see the characters, I had to save the file and open it directly in Notepad.

    Viewing 1 reply thread
    Reply To: Invalid characters in an iCalendar object (Notepad(?))

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: