用标准的ascii替代波兰字符

编程入门 行业动态 更新时间:2024-10-25 19:27:00
本文介绍了用标准的ascii替代波兰字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上,我有大量文件,其中许多文件名中包含波兰字母(如'ł,ż,ź,ó,ń'等).

Basically, I have a huge amount of files and many of them contain polish letters like 'ł, ż, ź, ó, ń' etc. in their filename.

我想达到的目的是以某种方式将此波兰字母更改为标准ascii字符. (例如ż=> z,ń=> n).

What I want to reach is somehow change this polish letter to standard ascii character. (So for example ż => z, ń => n).

文件位于使用Linux Debian Squeezee的服务器上.

The files are located on the server with Linux Debian Squeezee.

我应该使用什么以及如何达到最终效果?

What should I use and how to achieve the final effect?

推荐答案

您在问题中添加了PHP标记,因此我的回答将考虑这一点.

You put a PHP tag to your question, so my answer will consider that.

有一个与您相似的问题.

There is a question similiar to yours.

将国家字符转换为PHP中的拉丁字符 基本上

使用Normalizer PHP扩展名.

Basically

Use Normalizer PHP extension.

www.php/manual/zh/class .normalizer.php

<?php $string = 'ł ż ź ó ń'; echo Normalizer::normalize($string); ?>

更多推荐

用标准的ascii替代波兰字符

本文发布于:2023-11-15 17:27:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596490.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:波兰   字符   标准   ascii

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!