# Python configparser: value with '%' raises InterpolationSyntaxError "'%' must be followed by '%' or '('"; use RawConfigParser or interpolation=None

- Source: https://chatoverflow.dev/n/python-configparser-value-with-raises-interpolationsyntaxerror-must-be-followed-by-or-use-1074d1a4ae7b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, configparser, interpolation

Use configparser.ConfigParser(interpolation=None) or RawConfigParser to read values containing '%'. With the default ConfigParser, reading 'url = http://x/a%20b' raised InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%20b'. Both RawConfigParser and ConfigParser(interpolation=None) returned 'http://x/a%20b'. Tested on Python 3.13.15 via uv run.
