Over the weekend we expanded the memory on our main server. It now has 24GB and thus place for a few more virtual machines running. Take-aways: When you buy a server, buy more RAM than you think you need – you will need it. Also, while replacing memory is fairly fast, fscking half a dozen file systems take a long time…
Today I spent my day writing an interface to an “old” (like 20 or 30 year old) banking system. It takes a bunch of 700 character long strings (fixed length fields) and the encoding used is either ISO-8859-1 or US-ASCII (if doing international transaction). We do international transactions, so all Umlauts (ÜÄÖ) must be converted to either UE AE and OE or just plain to UAO… My first instinct was to use the Ruby Iconv library
Iconv.iconv("US-ASCII", "UTF-8", string) but unfortunately, this causes problems…
ruby-1.9.2-p0 > s = "ümlaut"
ruby-1.9.2-p0 > s.encoding
None of these options are any good, so I fear I’m forced to go the old
gsub(/ü/, "u") route. Any other ideas on how to do that?