terminal – Alternative to iconv encoding utf-8-mac

Spread the love

There used to be support for an encoding option called utf-8-mac with iconv in the Terminal. It’s mentioned in this forum several times. I used to use it a lot. Now with the following command (that used to work):

iconv -f utf-8-mac -t CP1252 infile.m3u > outfile.m3u

I get:

iconv: conversion to utf-8-mac unsupported

I tried an encoding called mac but that does not work either.

A clumpsy workaround in my case is to open in TextEdit, duplicate and save using Windows Latin 1 encoding. But I’d really prefer using iconv, but I don’t know what to look for and there are many encodings. Is there an equivalent to utf-8-mac?

Currently I use: macOS 10.14.6

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *