For my work as a church musician I have a stack with all the metrics used in our different hymnals
Each card has its own metric variation and the song using that metric are mentioned on that card
You could call it a Stone Age database - it is a very simple form of database indeed
Now I have made scripts to export the entire database to at textfile - which will be used as a data file for a web page, where you can search for hymns by their number or title (and many more things)
My problem is that when I just export the file as is - the web page reads some chars differently.
I did make a little add-on to the script for some common anomalities as "æ, ø, å" - very common in danish

But now that I have added some more hymn book with foreign titles (German and Swedish) I cannot "translate" the umlaut chars (ä, ü, ö) and their capital letter variants
I have been trying to read about the different text conversion functions. But I haven't found a solution to my problem
best regards
Here's a link to one of the web pages
http://www.johanmichaelsen.dk/Hvor-er-sangene/
- which is made in php
Here is a part of the script:
--lille oversætter til specialtegn - da jeg ikke kan få det til at virke med online salmesedlen ellers!!!!
repeat with i = 1 to the number of chars in tempResultat
put char i of tempResultat into tChar
if tChar = "æ" then
put "Ê" into tChar
else if tChar = "ø" then
put "¯" into tChar
else if tChar = "å" then
put "Â" into tChar
else if tChar = "Æ" then
put "∆" into tChar
else if tChar = "Ø" then
put "ÿ" into tChar
else if tChar = "Å" then
put "≈" into tChar
--else if tChar = "ä" then
--put "Ã" into tChar
else if tChar = "È" then
put "…" into tChar
else if tChar = "é" then
put "È" into tChar
end if
put tChar after tempResultat2
end repeat
---put uniDecode(uniEncode(tempResultat,"utf8")) into tempResultat2
---put uniEncode(tempResultat,"utf8") into tempResultat2
---put uniDecode(tempResultat,"utf8") into tempResultat2
--put tempResultat into url destFil
put tempResultat2 into url destFil
---put textDecode(tempResultat,"UTF-8") into url destFil
---put textDecode(tempResultat,"ASCII") into url destFil