sql - Show the ASCII code of each character in a string
https://stackoverflow.com/questions/71138683/show-the-ascii-code-of-each-character-in-a-string
Feb 16, 2022 · create or alter function dbo.FindBadAscii (@v varchar(max)) returns table as return select v [Char], Ascii(v) [Ascii] from ( select top (Len(@v)) Row_Number() over(order by (select null)) n from master.dbo.spt_values ) d cross apply(values(Substring(@v, d.n, 1)))x(v) where Ascii(v)<32 and Ascii(v) not in (9,10,13)
DA: 71 PA: 28 MOZ Rank: 18