Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
pandoc
pandoc
@pandoc@fosstodon.org  ·  activity timestamp 2 days ago

Off-label uses of pandoc: conversion between text encodings.

E.g., UTF-8 to UTF-16:

echo 'X' | pandoc lua -e 'io.write(pandoc.text.toencoding(io.read"a", "utf-16"))'

Other direction:

echo 'X' | pandoc lua -e 'io.write(pandoc.text.fromencoding(io.read"a", "utf-16"))'

The set of supported encodings is platform dependent, but always includes UTF-8, UTF-16, UTF-32, and latin1.

#pandoc #Unicode #encoding #conversion

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct