Publi

EMACS: Cambiando la codificación

Es muy común, sobre todo en trabajos colaborativos, que cada persona trabaje en una codificación diferente (casi siempre porque se usan programas diferentes para editar, y poca gente se para a cambiar la codificación por defecto). Por ejemplo, hay quienes guardan todos sus archivos en iso-8859-1 o iso-8859-15, incluso utf-8. Pero llega el momento en que se edita el archivo de otra persona, y esas codificaciones producen extraños comportamientos en la ejecución.

Una solución desde EMACS sería:
M-x set-buffer-line-coding-system RET [codificación, TAB para ver opciones] RET

O también podemos utilizar la recla rápida:
C-x RET f [codificación] RET

Ya podemos salvar el archivo (C-x C-s) y seguir trabajando.

También podría interesarte....

There are 6 comments left Ir a comentario

  1. Pingback: Bitacoras.com /

  2. timothyferriss /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    ¡Gracias por compartir esa solución utilizando Emacs! Efectivamente, la codificación de caracteres puede ser un desafío cuando se trabaja My Singing Monsters en proyectos colaborativos con diferentes configuraciones y preferencias.

  3. lee herty /
    Usando Google Chrome Google Chrome 115.0.0.0 en Windows Windows NT

    Online, you may take part in the free Lovatts daily word puzzles problem. Discover the secret solution to the riddle, which is playable on both your computer and your mobile device.

  4. Daisy Coles /
    Usando Google Chrome Google Chrome 147.0.0.0 en Windows Windows NT

    This is a really helpful tip! Encoding issues can be such a headache, especially when collaborating. I remember once trying to open a file from my Granny, who was helping me with some research, and all the special characters were messed up. I wish I had known about this EMACS trick back then. It would have saved me so much time and frustration. Thanks for sharing this!

  5. kartik /
    Usando Google Chrome Google Chrome 149.0.0.0 en Windows Windows NT

    A healthy lifestyle combined with products that Support Liver Health can make a positive difference. Regular care, balanced nutrition, and quality supplementation may help maintain optimal liver function and overall vitality.

  6. Tyler Durack /
    Usando Google Chrome Google Chrome 152.0.0.0 en Windows Windows NT

    This is a great tip for anyone dealing with character encoding issues, especially when collaborating. It’s a common headache that can really throw a wrench in your workflow, much like an unexpected event in Bitlife derailing your perfectly planned virtual life. Knowing how to quickly adjust the coding system in EMACS is a real time-saver and keeps things running smoothly.

Leave a Reply