Illegal Escape Error

Good afternoon. I’m trying to complete my first project with Kotlin, an art project with ASCII. I keep getting the “Illegal Escape” error when I try to use slashes for plants, as I’m trying to emulate the plant example that was given. What’s the best way to get around this? Here’s an example of my ASCII image.

// ^

// <*****>

// <*********>

// <*************>

// <> <****>

// / || <:::::…/


Do you already escape any backslashes (using \\)?

This page discusses string literals in Kotlin (and defines all of its escape characters).

Hi, @py9350909377

You should report the issue following these steps:


1 Like