.net - ObjectParameter in the System.Data.Objects namespace with international characters -
i'm trying use objectparameter in system.data.objects namespace.
this 1 work: new objectparameter("test", 1) 1 throws error: new objectparameter("täst", 1)
the problem when first parameter includes swedish characters å, ä, ö. following error message: specified parameter name 'täst' not valid. parameter names must begin letter , can contain letters, numbers, , underscores. parameter name: name
why doesn’t work? seems strange if international characters not supported!
/s
it doesn't seem terribly strange me. after all, name of parameter - it's not it's value of parameter.
it's fact variable names, method names etc can't contain non-ascii characters in languages (i've checked , turns out can in c#...).
for sake of simplicity in terms of getting things right, i'd recommend table names, stored procedure names, parameter names etc better off in ascii anyway. realise anglo-saxon-biased, given how bad industry @ getting unicode etc right in general, creating easily-misused names identifiers seems recipe disaster me. in particular, equality among ascii characters pretty straightforward - can case-sensitive or case-insensitive, that's about. there no culture-specific issues worry about.
when you've got whole range of unicode letters worry about, may end matching different names when using different cultures... , surely that's not idea.
i agree documentation lot clearer though :)
Comments
Post a Comment