«Arabic filenames»: الفرق بين المراجعتين

من ويكي عربآيز
اذهب إلى: تصفح، ابحث
 
سطر 1: سطر 1:
 
== Arabic Filenames in Linux ==
 
== Arabic Filenames in Linux ==
  +
<!--
 
 
Although the capability to have Arabic filenames are there, it is generally not advised. That is because currently, most applications will not know how to deal with it.
 
Although the capability to have Arabic filenames are there, it is generally not advised. That is because currently, most applications will not know how to deal with it.
  +
-->
   
 
=== Read Arabic Filenames ===
 
=== Read Arabic Filenames ===
سطر 7: سطر 8:
 
In order for your file manager to read Arabic filenames properly, you need to specify the character set to be used. There are two environment settings you need to have, which you can either export (using bash) or add to your ~/.profile or ~/.bash_profile file.
 
In order for your file manager to read Arabic filenames properly, you need to specify the character set to be used. There are two environment settings you need to have, which you can either export (using bash) or add to your ~/.profile or ~/.bash_profile file.
   
<pre><wiki>
+
<pre>
 
$ export G_BROKEN_FILENAMES=1
 
$ export G_BROKEN_FILENAMES=1
</wiki></pre>
+
</pre>
   
 
=== Write Arabic Filenames ===
 
=== Write Arabic Filenames ===
سطر 19: سطر 20:
 
In order for you to be able to read Arabic filenames from a Windows partition, you need to tell the mount command what character set to use. This is done by the following (assuming your Windows partition resides on /dev/hda3:
 
In order for you to be able to read Arabic filenames from a Windows partition, you need to tell the mount command what character set to use. This is done by the following (assuming your Windows partition resides on /dev/hda3:
   
<pre><wiki>
+
<pre>
 
# mount -t auto /dev/hda3 /mnt/win/ -oiocharset=utf8
 
# mount -t auto /dev/hda3 /mnt/win/ -oiocharset=utf8
</wiki></pre>
+
</pre>
   
 
You can also make this permanent by adding it to your /etc/fstab file.
 
You can also make this permanent by adding it to your /etc/fstab file.
   
<pre><wiki>
+
<pre>
 
/dev/hda3 /mnt/win vfat defaults,iocharset=utf8 0 0
 
/dev/hda3 /mnt/win vfat defaults,iocharset=utf8 0 0
</wiki></pre>
+
</pre>
   
 
However, please do note that using "iocharset" is known to cause some unpredictable behavior, so use at your own risk.
 
However, please do note that using "iocharset" is known to cause some unpredictable behavior, so use at your own risk.

نسخة 00:33، 21 أكتوبر 2006

Arabic Filenames in Linux

Read Arabic Filenames

In order for your file manager to read Arabic filenames properly, you need to specify the character set to be used. There are two environment settings you need to have, which you can either export (using bash) or add to your ~/.profile or ~/.bash_profile file.

$ export G_BROKEN_FILENAMES=1

Write Arabic Filenames

It is more common to name files in Arabic via an application or a GUI filemanager. If you were trying to write Arabic filenames via the shell under an X terminal you would need ["Mlterm"] or a similar terminal with UTF-8 support. If you were trying to do this via the console you will probably want to have Akka installed.

Mount Windows Partition

In order for you to be able to read Arabic filenames from a Windows partition, you need to tell the mount command what character set to use. This is done by the following (assuming your Windows partition resides on /dev/hda3:

# mount -t auto /dev/hda3 /mnt/win/ -oiocharset=utf8

You can also make this permanent by adding it to your /etc/fstab file.

/dev/hda3  /mnt/win vfat  defaults,iocharset=utf8  0 0

However, please do note that using "iocharset" is known to cause some unpredictable behavior, so use at your own risk.