---
title: "Breaking: #105686 - Avoid obsolete $charset in sanitizeFileName()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-105686-1732289792"
source: "Changelog/14.0/Breaking-105686-AvoidObsoleteCharsetInSanitizeFileName.rst"
typo3-version: "14.0"
typo3-major: 14
type: "breaking"
issue: 105686
forge: "https://forge.typo3.org/issues/105686"
tags: ["FAL", "PHP-API", "NotScanned", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Breaking: #105686 - Avoid obsolete $charset in sanitizeFileName() {#breaking-105686-1732289792}

See [forge#105686](https://forge.typo3.org/issues/105686)

## Description {#description}

The interface
`\TYPO3\CMS\Core\Resource\Driver\DriverInterface` has been updated.

The method signature

```php
public function sanitizeFileName(string $fileName, string $charset = ''): string
```

has been simplified to:

```php
public function sanitizeFileName(string $fileName): string
```

Implementing classes no longer need to handle a second argument.

## Impact {#impact}

This change has little to no impact, since the main API caller - the Core
class `ResourceStorage` \- never passed a
second argument. The default implementation,
`LocalDriver`, has therefore always
behaved as if handling UTF-8 strings.

## Affected installations {#affected-installations}

TYPO3 installations with custom File Abstraction Layer (FAL) drivers
implementing `DriverInterface` may
be affected.

## Migration {#migration}

Implementing classes should drop support for the second argument. Retaining it
does not cause a conflict with the interface, but the TYPO3 Core will never
call `sanitizeFileName()` with a second parameter.
