# perldoc > DBM_Filter::utf8

---
type: CommandReference
command: DBM_Filter::utf8
mode: perldoc
section: ""
source: perldoc
---

## Quick Reference

- `$db->Filter_Push('utf8')` — enable UTF-8 encoding/decoding for all data in a DBM tied hash

## Name

`DBM_Filter::utf8` — filter for DBM_Filter

## Synopsis

perl
use SDBM_File;            # or DB_File, GDBM_File, NDBM_File, ODBM_File
use DBM_Filter;

$db = tie %hash, ...;
$db->Filter_Push('utf8');
## Description

This filter ensures that all data written to the DBM will be encoded in UTF-8. It uses the `Encode` module internally.

## See Also

- [DBM_Filter](https://perldoc.perl.org/DBM_Filter)
- [perldbmfilter](https://perldoc.perl.org/perldbmfilter)
- [Encode](https://perldoc.perl.org/Encode)