' Collection of code snippets by Arne VajhÃ¸j 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
a1 = array("æ", "ø", "å")
a2 = array("ae", "oe", "aa")

function dk2uk(s)
    res = s
    for i = lbound(a1) to ubound(a1)
        res = replace(res, a1(i), a2(i))
    next
    dk2uk = res
end function

WScript.Echo dk2uk("abcæøå123")

