strange behaviuor when assigning string

A

andy

Hi

I have some strange behaviour that im looking for ideas on:
GetCountryCode returns a string from a stored procedure, standard stuff

strCult = Trim(ca.GetCountryCode(Userid))
ci = New CultureInfo(Trim(strCult))
Thread.CurrentThread.CurrentCulture = ci

if i debug in the environment the output of GetCountryCode is:
"sv-SE
"

Note the carridge return (maybe this is irrelevent)

If I set the same code manually it works:
ci = New CultureInfo("sv-SE")
Thread.CurrentThread.CurrentCulture = ci

Is there something basic im missing here that I cant see, there are
other ways around this but I would be really intrested to know what im
doing wrong when assigning this string

Any help appreciated

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top