[OSM-dev] UTF8 problem with last night's daily .osc
Richard Fairhurst
richard at systemeD.net
Sat Aug 30 11:57:32 BST 2008
Frederik Ramm wrote:
> Returning an error should be no more difficult than throwing an
> exception there if v.length exceeds 255, only thing I am not sure
> about is whether Ruby will try to be smart and return the length
> not in bytes but in characters...?
irb(main):001:0> 'fred'.length
=> 4
irb(main):002:0> 'fr\303\251d'.length
=> 5
(that's an é)
cheers
Richard
More information about the dev
mailing list