tsql - cant find Varchar Chart of acceptable characters -


does know of simple chart or list show acceptable varchar characters? cannot seem find in googling.

what codepage? collation? varchar stores characters assuming specific codepage. lower 127 characters (the ascii subset) standard. higher characters vary codepage.

the default codepage used matches collation of column, defaults inherited table,database,server. of defaults can overriden.

in sort, there no "simple chart". you'll have check character chart specific codepage, eg. using "character map" utility in windows.

it's far, far better use unicode , nvarchar when storing database. if store text data wrong codepage can end mangled , unrecoverable data. way ensure correct codepage used, enforce way client (ie desktop app) application server, down database.

even if client/application server uses unicode, difference in locale between server , database can result in faulty codepage conversions , mangled data.

on other hand, when use unicode no conversions needed or made.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -