0

Query:

DECLARE @Patd_base nvarchar(50) = '‪axx';

PRINT @Patd_base

Output is

?axx

Why is the ? in the output? What does it mean?

Thanks for the help!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
BUNIT
  • 3
  • 3
  • why? show '?' in the query – BUNIT Nov 14 '20 at 03:49
  • Seems to be similiar to [Linq query not behaving as expected](https://stackoverflow.com/a/36424445/5070879). The letter 'a' is not a Latin 'a' or you have some control characters. Using `DECLARE @Patd_base nvarchar(50) = N'‪axx';` will not cause implicit conversion [db<>fiddle demo](https://dbfiddle.uk/?rdbms=sqlserver_2017&fiddle=2ec577b96ad74fc8a7a9ca4022e26738) – Lukasz Szozda Nov 14 '20 at 07:48

1 Answers1

1

I believe you copied and pasted the value 'axx' from elsewhere. It has a hidden extended character in it.

When I copy/pasted your command above into Notepad++, and converted to ANSI encoding, I got '‪axx'

seanb
  • 6,272
  • 2
  • 4
  • 22