How to create a UTF-8 encoded text file in VBA? The text can contain any characters: " (quotation mark), ' (apostrophe), etc. For example, in AppleScript, the printf, echo commands convert the source text: for example, ' (apostrophe) is deleted. It is necessary that the Mac does not convert anything at all, but writes to a file what it is given.