(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
public convert(string $str, bool $reverse = false): string|false
public fromUCallback( int $reason, array $source, int $codePoint, int &$error ): string|int|array|null
public static getAliases(string $name): array|false|null
public static getAvailable(): array
public getDestinationEncoding(): string|false|null
public getDestinationType(): int|false|null
public getErrorCode(): int
public getErrorMessage(): ?string
public getSourceEncoding(): string|false|null
public getSourceType(): int|false|null
public static getStandards(): ?array
public getSubstChars(): string|false|null
public static reasonText(int $reason): string
public setDestinationEncoding(string $encoding): bool
public setSourceEncoding(string $encoding): bool
public setSubstChars(string $chars): bool
public toUCallback( int $reason, string $source, string $codeUnits, int &$error ): string|int|array|null
public static transcode( string $str, string $toEncoding, string $fromEncoding, ?array $options = null ): string|false}
UConverter::REASON_UNASSIGNED int UConverter::REASON_ILLEGAL int UConverter::REASON_IRREGULAR int UConverter::REASON_RESET int UConverter::REASON_CLOSE int UConverter::REASON_CLONE int UConverter::UNSUPPORTED_CONVERTER int UConverter::SBCS int UConverter::DBCS int UConverter::MBCS int UConverter::LATIN_1 int UConverter::UTF8 int UConverter::UTF16_BigEndian int UConverter::UTF16_LittleEndian int UConverter::UTF32_BigEndian int UConverter::UTF32_LittleEndian int UConverter::EBCDIC_STATEFUL int UConverter::ISO_2022 int UConverter::LMBCS_1 int UConverter::LMBCS_2 int UConverter::LMBCS_3 int UConverter::LMBCS_4 int UConverter::LMBCS_5 int UConverter::LMBCS_6 int UConverter::LMBCS_8 int UConverter::LMBCS_11 int UConverter::LMBCS_16 int UConverter::LMBCS_17 int UConverter::LMBCS_18 int UConverter::LMBCS_19 int UConverter::LMBCS_LAST int UConverter::HZ int UConverter::SCSU int UConverter::ISCII int UConverter::US_ASCII int UConverter::UTF7 int UConverter::BOCU1 int UConverter::UTF16 int UConverter::UTF32 int UConverter::CESU8 int UConverter::IMAP_MAILBOX int | Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.uconverter.php