How many bytes should be reserved for 100-symbol text string (html text put

NumNoum

New member
into the db)? Space->&nbsp ; etc.? So, you want to save a text (input type="text" name="message" maxlength="100") to the server's database column "message" with varchar(???) type.
First of all, such symbols as \ will be saved as \. That means it should be not less that varchar(200). Moreover, space will be saved as * special symbols will be saved as ? (some German letters that are not used in English or even more bytes). So, should it be varchar(700) or more?
Thank you.

Who can explain me that thing? All I want is to be sure everything will be saved, not wasting server's and db space and no errors.
Thank you.
 
Back
Top