Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6956453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:52:17+00:00 2026-05-27T14:52:17+00:00

I am using the google calendar api to add events to a calendar. Everything

  • 0

I am using the google calendar api to add events to a calendar. Everything is working fine, but there seems to be an issue if I try to use line breaks in the event description. \n is not working in the link

I would like the description of the event to read:

Hello
this is the description for add to calander

which as a string is:

"Hello\nthis is the description for add to"

Here is the link I’ve been trying to use:

http://www.google.com/calendar/render?details=Hello\n this is the description for add to
calander&trp=true&action=TEMPLATE&text=Text here&sprop Dname=Subjet here&location=Location Here&pli=1&sf=true&output=xml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:52:18+00:00Added an answer on May 27, 2026 at 2:52 pm

    You have to URI encode the ‘\n’ character. The character ‘\n’ has an ASCII value of 0x0A (in hex), and can so be encoded as %0A. You also might want to escape other characters like spaces. The link below will achieve what you are trying to do:

    http://www.google.com/calendar/render?details=Hello%0Athis+is+the+description+for+add+to+calender&trp=true&action=TEMPLATE&text=Text+here&sprop+Dname=Subject+here&location=Location+Here&pli=1&sf=true&output=xml

    If you want to find the appropriate ascii characters, have a look at the hex values in this ASCII table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a session token to use the Google Calendar API using
Using the Google Calendar API , I can successfully add , update and delete
I want to make Task in Google Calendar using Google Calendar API : c#.
I want to create Task in Google Calendar using Google Calendar API.Using C#. Looking
Using the Google Calendar Api . After browsing the rfc2445 , I'm still unable
I am using Google API Version 2 fo .NET to create Google Calendar Entries.
I am using Google API Version 2 fo .NET to create Google Calendar Entries.
I've been trying to work with the Google Calendar JSON API, but have been
I'm using the new Google Calendar API v3. I'm trying to obtain the users
I have modified my PHP web app to add events to a Google Calendar.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.