# 3lech sous-titres ywarriw 7rouf ghariba (w kifech tsall7ou 3al Mac)

> 3lech fichiers sous-titres ywarriw romouz ghariba w 3alamet istifham? Efhem el encodage mojibake w kifech tbadelhom l-UTF-8 3al Mac.

Tnachar nhar 2026-10-31 · Formats w codecs · https://www.hazenstudio.com/maclc/tn/blog/fix-garbled-subtitles/

## Bil mokhtasar

- 7rouf ghariba (mojibake) ysir ki lecteur ydécodi fichier sous-titres b-encodage caractères ghalet.
- 7rouf b-accents yefsdou ki fichiers Windows-1252 yet9raw b-décodeurs UTF-8 jdod.
- Sous-titres b-Arabe, Hébreu, w Cyrillique yotlbou encodage UTF-8 w ta3dil ktiba bidirectionnel.
- Tnajem tbadel fichiers sous-titres mafsdin l-UTF-8 ndhif 3la macOS b-TextEdit wella commande iconv.
- MacLC ya9ra sous-titres texte b-ay encodage caractères.

Sous-titres ywarriw 7rouf ghariba, mo3ayyinat ka7la b-3alamet istifham, wella romouz mchabka ki ykoun fama far9 bin encodage el caractères elli tsajjel bih fichier sous-titres wel encodage elli yesta3mlou lecteur el vidéo bech ydécodih.

El fasad el basari hedha ma3rouf f-informatique b-esm mojibake (kelma jabaniya ma3naha tahwil el 7rouf). Ma ya3nich elli fichier el vidéo mefsed wella fih virus. Ya3ni ennou moteur el ktiba f-lecteur ya9ra el octets b-jadwal abjadiya ghalet.

## Chnowa yasbab el 7rouf el ghariba w mojibake?

El ordinateurs ma y5abbiwch 7rouf el insen direct 3al disque. Y5abbiw ar9am k-octets binaire. L-encodage de caractères howa 9amous motafa9 3lih yorbot kol ra9m b-ramz mektoub yodh-hor.

F-bideyat el informatique, el ktiba kenet ta3temed 3la ASCII 7-bit, elli ymathel ken 128 7arf — yekfiw l-7rouf el Anglais, ar9am, w ponctuation basita. Bech yzidou loughat o5rin, systèmes san3ou pages de code 8-bit fihom 256 blasa:

- **Windows-1252 (CP-1252):** Standard l-loughat Oropa el Gharbiya (Français, Espagnol, Allemand).
- **Windows-1256:** Standard lel ktiba el Arabe.
- **Windows-1251:** Standard l-abjadiyat Cyrillique (Russe, Ukrainien, Bulgare).
- **Windows-1253:** Standard lel Grec.
- **Shift-JIS:** Standard lel Japonais.

El machakel tsir 5ater pages de code el 9dom hedhom yesta3mlou nafs el ar9am l-7rouf mo5talfa jemla. F-Windows-1252, octet `0xE9` ymathel el 7arf el français `é`. F-Windows-1256, nafs octet `0xE9` ymathel el 7arf el 3arabi Dal (`د`). F-Windows-1251, octet `0xE9` ymathel el 7arf Cyrillique (`и`).

El systèmes el jdod wel standards open-source 7allou el fawdha hedhi b-**UTF-8**, m7added f-[RFC 3629](https://datatracker.ietf.org/doc/html/rfc3629). UTF-8 howa encodage universel ymathel akther men 150,000 7arf men kol lougha b-1 l-4 octets.

```text
Kifech ysir Mojibake:
Texte français asli:     café
Octets UTF-8:            0x63 0x61 0x66 0xC3 0xA9
Ma9ri k-CP-1252:         c    a    f    Ã    ©     --> Yodh-hor "cafÃ©"
```

Ken we7ed sajjel fichier SRT b-Windows-1252 el 9dim, w lecteur el Mac el jdid mte3ek yetwa99a3 fichier UTF-8, el décodeur yal9a octets wa7adhom win yestanna suites multi-octets. Yefchel fel 9raya, w y5arrej ktiba mchabka kima `cafÃ©` f-blast `café`, wella ybadel el 7rouf b-ramz el istibdal Unicode (``).

## Anehom loughat yetkassrou akther f-fichiers sous-titres?

Machakel encodage caractères todhreb akther el loughat elli fihom accents, abjadiyat mouch latiniya, wella ktiba men ymin l-ysar.

| 3aylet Lougha | Encodage 9dim Chaye3 | 3alamet Mojibake | Sabab Asli |
| :--- | :--- | :--- | :--- |
| **Oropa Gharbiya** (Français, Espagnol, Allemand) | Windows-1252 / ISO-8859-1 | `cafÃ©`, `aÃ±o`, `straÃŸe` | Parser UTF-8 ya9ra accents 1-octet k-zouz romouz CP-1252 |
| **Arabe** | Windows-1256 | `ÇáÚÑÈíÉ` wella 7rouf ma9louba mfar9a | Code points Arabe 1-octet ma9riyin b-jadwel Latin |
| **Cyrillique** (Russe, Ukrainien) | Windows-1251 / KOI8-R | `Ð¿Ñ€Ð¸Ð²ÐµÑ‚` wella accents ghariba | Suites UTF-8 Cyrillique 2-octets marboutin b-Latin-1 |
| **Grec** | Windows-1253 / ISO-8859-7 | `ÅëëçíéêÜ` | 7rouf Grec marboutin b-accents Oropa Gharbiya |
| **Asie Char9iya** (Japonais, Chinois) | Shift-JIS / GB2312 / Big5 | Kanji ma yet9rach wella erreurs syntaxe | Encodages Asie multi-octets yetdharrbou m3a UTF-8 |

Sous-titres Arabe w Hébreu 3andhom ta7addi theni: tachkil el ktiba bidirectionnel. El Arabe yetekteb men ymin l-ysar (RTL), w kol 7arf ybadel cheklou 7asb blasstou f-awwel, west, wella a5er el kelma.

Ken lecteur vidéo ydécodi el fichier b-moteur rendu Latin men ysar l-ymin men ghir librairies tachkil kima FriBidi w HarfBuzz, el klem el Arabe yodh-hor bel ma9loub, b-kol 7arf ma9sous wa7dou.

Bech tefhem kifech structure sous-titres mnaddhma satr b-satr, chouf [chnouwa howa fichier SRT](/maclc/blog/what-is-an-srt-file/).

## Kifech tbadel fichier sous-titres mchabek l-UTF-8 f-TextEdit macOS?

Ma test7a9ech techri outils sous-titres bech tsalla7 el 7rouf el mafsda 3al Mac. Tnajem t3awed tencodi ay fichier sous-titres texte b-application TextEdit elli tji m3a macOS.

Tebba3 el 5otowat hedhom bech tbadel fichier SRT l-UTF-8 ndhif:

1. 7ell **TextEdit** 3al Mac mte3ek.
2. 7ell **TextEdit › Réglages** (wella **Préférences** f-macOS el 9dom) mel barre mel fou9 (`⌘,`).
3. Enzil 3la onglet **Ouverture et enregistrement**.
4. Thabbet elli **Ouverture des fichiers** ma7touta **Automatique** w **Enregistrement des fichiers** ma7touta **Unicode (UTF-8)**.
5. Fel Finder, clic droit 3al fichier `.srt`, e5tar **Ouvrir avec**, w e5tar **TextEdit**.
6. Ken el fichier yethall b-7rouf mchabka, e5tar **Fichier › Ouvrir** (`⌘O`) da5el TextEdit, enzil marra wa7da 3al fichier sous-titres, w chouf menu **Encodage du texte** mel louta. E5tar el page de code el 9dima elli tneseb el lougha (kima **Occidental (Windows Latin 1)** l-Oropa wella **Arabe (Windows)** lel Arabe).
7. Awel ma el 7rouf todh-hor ma9riya, e5tar **Fichier › Dupliquer** (`⇧⌘S`), ba3d e5tar **Fichier › Enregistrer** (`⌘S`).
8. F-fenêtre el 7efdh, sammi el fichier, thabbet elli **Encodage du texte** ma7tout **Unicode (UTF-8)**, w enzil **Enregistrer**.

Fichier sous-titres el jdid mte3ek tawwa encodi b-UTF-8 universel w bech yethall b-ktiba ndhifa f-ay lecteur jdid.

## Kifech tbadel sous-titres l-UTF-8 b-Terminal macOS (iconv)?

Ken TextEdit ye7ir fel encodage el asli, wella ken t7eb tbadel barcha fichiers sous-titres l-saison kamla men mousalsal f-marra wa7da, l-outil Terminal `iconv` el ma7tout f-macOS ya3ti conversion madhmouna.

`iconv` howa librairie ligne de commande Unix mawjouda 3la kol Mac tbadel texte men encodage l-e5er.

### Mar7la 1: 7ell Terminal

7ell Terminal men `/Applications/Utilities/` wella lawej 3lih b-Spotlight (`⌘Espace`).

### Mar7la 2: Executi commande el conversion

Emchi lel dossier elli fih fichier sous-titres b-commande `cd`, wella ekteb el chemins kamlin.

Bech tbadel fichier sous-titres Oropa Gharbiya msajjel b-Windows-1252 l-UTF-8 ndhif:

```bash
iconv -f WINDOWS-1252 -t UTF-8 "input.srt" > "output_utf8.srt"
```

Bech tbadel fichier sous-titres Arabe msajjel b-Windows-1256 l-UTF-8 ndhif:

```bash
iconv -f WINDOWS-1256 -t UTF-8 "arabic_input.srt" > "arabic_utf8.srt"
```

Bech tbadel fichier sous-titres Cyrillique msajjel b-Windows-1251:

```bash
iconv -f WINDOWS-1251 -t UTF-8 "russian_input.srt" > "russian_utf8.srt"
```

El conversion tekhou a9al men thanya. Ba3d ma yekmel, badel fichier `.srt` el asli b-fichier `_utf8.srt` el jdid.

MacLC ya9ra sous-titres texte b-ay encodage caractères, bima fihom pages de code Windows w ISO el 9dom, w y5alli sous-titres f-abyadh SDR fou9 HDR. Ken fichier mezel ywarri 7rouf ghariba, badlou l-UTF-8 kima mfasser fou9.

## Kifech tsalla7 encodage sous-titres f-VLC lel Mac?

Ken testa3mel VLC media player 3la macOS, tnajem tconfiguri démuxeur sous-titres mte3ou bech ytabba9 encodage fallback mo3ayyen ki fichier sous-titres ykoun na9sou métadonnées UTF-8:

1. 7ell **VLC › Réglages** (wella **Préférences**) mel barre mel fou9 (`⌘,`).
2. Enzil 3la icône **Sous-titres / OSD** fou9 fenêtre el préférences.
3. Lawej 3la menu **Encodage par défaut**.
4. Par défaut, VLC y7ottou **Universel (UTF-8)**. Ken tetfarrej f-film b-sous-titres 9dim, baddel el menu hedha bech ymachi lougha mte3ek (mathalan **Arabe (Windows-1256)** wella **Europe occidentale (Windows-1252)**).
5. Enzil **Enregistrer** w 3awed cha33el el vidéo.

Tfakkar trajja3 el réglage hedha l-**Universel (UTF-8)** ki tkammel el film, wella sous-titres UTF-8 el jdod bech yebdaw ywarriw 7rouf mchabka f-vidéowat o5rin. Ken sous-titres ma yodh-hrouch jemla, chouf [tasli7 sous-titres 3al Mac](/maclc/blog/subtitles-on-mac/).

## 3lech ba3dh sous-titres ma yetzall7ouch b-ré-encodage texte?

Ken t7ell fichier sous-titres w tal9a 7rouf ma tet9rach ma tetzalla7ch b-conversion UTF-8, momken el fichier maouch sous-titres texte aslan.

Disques Blu-ray w DVDs commerciaux ma y5abbiwch sous-titres k-texte. Y5abbiwhom k-tsawer bitmap pré-rendues:

- **Blu-ray PGS (`.sup`):** Tsawer graphiques haute définition.
- **DVD VobSub (`.sub` / `.idx`):** Tsawer 2-bit définition standard.

Ken fichier MKV fih pistes PGS wella VobSub, ma tnajamch tbadelhom f-TextEdit wella b-`iconv`. Ken t7awel t3addi fichier image f-convertisseur texte, tfassed entêtes el taswira. Bech tefhem kifech ye5dmou sous-titres graphiques, a9ra [sous-titres PGS mfassrin](/maclc/blog/pgs-subtitles/).

Ken el texte yodh-hor mrigel ama yji thweni 9bal wella ba3d el klem, el mochkel taw9it mouch encodage. A9ra el guide mte3na [tasli7 sous-titres out of sync](/maclc/blog/fix-subtitles-out-of-sync/).

## Chnowa ta3mel b-sous-titres mte3ek tawwa?

Ma lezmekch tet3adheb b-accents mkassrin, 3alamet istifham ka7la, wella ktiba Arabe ma9louba ki tetfarrej f-film 3al Mac.

Bech tadhmen elli sous-titres dima yodh-hrou ndhaf:

1. Thabbet elli documents sous-titres msajlin b-encodage UTF-8 universel.
2. 5alli fichier sous-titres f-nafs el dossier m3a el film b-nafs el esm el asasi.
3. Nazzel [MacLC mel saf7et el tanzil](/maclc/donate/).

MacLC masnou3 5issisan l-Mac-et Apple Silicon elli ye5dmou b-macOS 26 Tahoe wella ajadd. Ygeri sous-titres texte b-ay encodage, yed3em typographie vectorielle b-libass, w ya3redh sous-titres wadhin w ma9riyin 3la kol aflamek.

## As2ela yet3awdou

### 3lech sous-titres mte3i ywarriw romouz ghariba kima Ã© w 3alamet istifham?

Fasad el 7rouf hedha yetsamma mojibake. Ysir ki fichier sous-titres yetsajjel b-encodage 9dim (kima Windows-1252) ama lecteur el vidéo y7awel ya9ra el octets k-UTF-8 jdid.

### Kifech nsalla7 sous-titres Arabe elli yodh-hrou k-romouz ma tet9rach 3al Mac?

Sous-titres Arabe msajlin b-Windows-1256 el 9dim lezmhom yetbadlou l-Unicode (UTF-8). Fel Terminal, executi iconv -f WINDOWS-1256 -t UTF-8 input.srt > output.srt. W esta3mel lecteur yhazz FriBidi w HarfBuzz l-tachkil el 7rouf men ymin l-ysar.

### Kifech nbadel fichier sous-titres l-UTF-8 f-TextEdit macOS?

7ell TextEdit, emchi l-Réglages › Ouverture et enregistrement, w thabbet elli encodage fichiers texte ma7tout 3la Unicode (UTF-8). 7ell fichier sous-titres, e5tar Format › Convertir au format Texte ken lazem, w sajjel el fichier.

### Chnowa a7sen encodage caractères l-sous-titres?

Unicode UTF-8 howa el standard el 3alami lel fichiers sous-titres. Yed3em kol el loughat, el accents, wel abjadiyat fel 3alam f-document wa7ed w mad3oum men kol système jdid.

---
MacLC lecteur vidéo gratuit w open-source l-Mac Apple Silicon: https://www.hazenstudio.com/maclc/tn/ · tanzil: https://www.hazenstudio.com/maclc/tn/donate/
