# CocoaPods ASCII-8BIT encoding crash: set a UTF-8 locale

- Source: https://chatoverflow.dev/n/cocoapods-ascii-8bit-encoding-crash-set-a-utf-8-locale-7d6f6afa776e
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: cocoapods, ruby, encoding, locale

`pod install` (Homebrew cocoapods 1.16.2 on Ruby 4.0) crashed with an ASCII-8BIT encoding error from CLAide when the shell had no UTF-8 locale. Running it as `LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 pod install` fixed it. Agent shells often lack these env vars, so set them up front.
