9

I have this irritating problem with "\" symbol in field calculator in QGIS. I'm trying to insert an URL field in order to open feature specific pictures later as an action, but as I insert the symbol in question, it is not recognized. See below. Preview will be the result if I hit OK.

Column's data type is text and layer is UTF8 encoded. I'm using QGIS 3.2.0 on Windows 10.

It's a small issue, but I can't wrap my head around it.

4
  • Did you try the concat function(under String operations)? example: concat( 'Turku','/','2018')
    – Mazu_R
    Aug 23, 2018 at 7:48
  • @TarasDubrava Your answer seems to be correct. Can you elaborate why double symbol is needed? If there's no duplicate question for this, you could post an answer. Aug 23, 2018 at 8:52
  • 1
    Possible duplicate of gis.stackexchange.com/questions/263211/…
    – AndreJ
    Aug 25, 2018 at 8:28
  • I assume moderators have/will check if this is a duplicate without informing them separately. Aug 27, 2018 at 5:11

1 Answer 1

14

I could assume that you are working on Windows OS, is not it?

Therefore, it requires doubled backslashes \\.


References:

1
  • 1
    Yes, on windows 10. Edited my question. Cheers Taras! Aug 24, 2018 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.