/* 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) */
#include <stdio.h>
#include <wchar.h>
#include <locale.h>

int main(int argc, char *argv[])
{
    setlocale(LC_ALL,"");
    wchar_t *s1 = L"Ã?Ã?Ã?Ã¦Ã¸Ã¥";
    wchar_t *s2 = L"\u00C6\u00D8\u00C5\u00E6\u00F8\u00E5";
    FILE *f = fopen("c.txt", "w");
    fprintf(f, "%ls = %ls\n", s1, s2);
    fclose(f);
    return 0;
}
