Home Unanswered Active Tags New Question

Unsupported Escape Sequence

Hi,

Both the daypilot calendar and month controls error when dealing with SQL DB fields that contain a backslash ( \ ). In my case, the backslash is meaningful because the field in question is a domain\username. Idiscovered this when moving events OnEventMove...

Error:
Exception was thrown in the server-side event handler:

System.Exception: Unsupported escape sequence: \j
at DayPilot.Web.Ui.Json.SimpleJsonDeserializer.unescape(String source)
" .getString()
" .getNextValue()
" .getObject()
" .getNextValue()
" .getgetObject
...
" .Deserialize(String input)
at DayPilot.Web.Ui.DayPilotMonth.ExecuteEventJSON(String ea)
at DayPilot.Web.Ui.DayPilotMonth.RaiseCallbackEvent(String ea)
at System.Web.UI.Page.PrepareCallback(String callbackControlID)

If you have a workaround, I could use it. Otherwise, I'll reformat the DB to separate user and domain, and cat them together as necessary.

Thanks!

Asked by J Nigon 2 years ago.
Replies

Has anyone found the solution to this? we have the same problem

Comment posted by Anonymous 1 year ago.

There was a bug in the deserializer. It is now fixed in build 6.0.2077 (see the sandbox).

Comment posted by Dan Letecky 1 year ago.

Please, check the '+' sign also.

It is replaced by gap.

Comment posted by Anonymous 1 year ago.
I'm having similar problem. I'm using the latest release of DayPilot Pro 6.0 SP1 Release date: June 30, 2010 (build 2078) Does any one has any suggestion for a work aground and till fix will be released? [Exception: Unsupported escape sequence : \u] DayPilot.Web.Ui.Json.SimpleJsonDeserializer.unescape(String source) +346 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getString() +206 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getNextValue() +45 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getObject() +333 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getNextValue() +65 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getObject() +333 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getNextValue() +65 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getObject() +333 DayPilot.Web.Ui.Json.SimpleJsonDeserializer.getNextValue() +65 DayPilot.Web.Ui.DayPilotCalendar.ExecuteEventJSON(String ea) +60 DayPilot.Web.Ui.DayPilotCalendar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +71 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Comment posted by Anonymous 1 year ago.

It should be fixed now in 6.4 SP1:

http://www.daypilot.org/daypilot-pro-6-4-sp1.html

Answer posted by Dan Letecky [DayPilot] 7 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java