question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Escape Character Problem

See original GitHub issue

Hi,

I’m trying to get the OverviewPath.Points value inside the response object from DirectionsApi. However, the backslash in the string is detected as an escape character.

I tried all kinds of solutions but no result. I would be glad if you help.

Example:

@V`AtA\\FBz@pA|HtMpG~

Must be:

@V`AtA\FBz@pA|HtMpG~

THANK YOU FOR YOUR HELP

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vivetcommented, Apr 18, 2023

I assume the problem was on your side, since you closed the issue

0reactions
kadirgedikcommented, Apr 17, 2023
                    var directionsRequest = new DirectionsRequest
                    {
                        Key = AppSettings.GetValue("Google:MapsApiKey"),
                        Origin = new LocationEx(new CoordinateEx(41.0036838371790, 28.919970087729887)),
                        Destination = new LocationEx(new CoordinateEx(41.00251689343485, 28.701116036272236)),
                        Alternatives = true,
                        DepartureTime = DateTime.UtcNow,
                        Language = Language.Turkish,
                    };
Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Problem with escape character
Problem with escape character ... When I try to add it to the TextBox control, nothing happens.Because \0 mean END. How do I...
Read more >
Escape sequences
Use escape sequences only in character constants or in string literals. An error message is issued if an escape sequence is not recognized....
Read more >
Escape character
An escape character is a particular case of metacharacters. Generally, the judgement of whether something is an escape character or not depends on...
Read more >
Escaping characters in Java
Java Escape Characters In Java, if a character is preceded by a backslash (\) is known as Java escape sequence or escape characters....
Read more >
Escape Sequences
Character combinations consisting of a backslash (\) followed by a letter or by a combination of digits are called "escape sequences.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found