Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Tag: character

Written by #xxaxxelxxMarch 29, 2022March 29, 2022

remove most control characters from a string

Written by #xxaxxelxxDecember 11, 2018December 11, 2018

Samba | File Names | Umlaut Characters with strange encodings

Problem: You have a lot of files with strange encoded names like: Your filesystem, transfered from older samba servers, contains files with windows-1252 encoded characters ibn their names, who won’t be displayed by samba. Solution: Use the magic convmv tool: # convmv –notest -r -f windows-1252 -t utf-8 /path/to/your/data Thank you, Bjoern JACKE!

Written by #xxaxxelxxMarch 23, 2017March 23, 2017

Decode URL encoded strings on OpenBSD

alias urldecode=’$PYTHON -c “import urllib, sys; print urllib.unquote(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])”‘

Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 88 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar