c# - Encode error in while showing data -
when tried show data in view data rendered wrong. data:
"kn\326"
and output :
knÖ
the data coming via viewbag.
the way escape " \ ", since \xxx special char
before "printing" on screen, juste apply regex on string ( "s/\/\\/g"
correct regex, i'm not sure)
Comments
Post a Comment