How do I determine my MATLAB default character encoding scheme?
Mostrar comentarios más antiguos
Using unicode2native with a single argument, it defaults to "the MATLAB default character encoding scheme". How do I find out what my default is?
Respuestas (4)
Grzegorz Knor
el 8 de Sept. de 2011
Another solution:
feature('DefaultCharacterSet')
Grzegorz Knor
el 8 de Sept. de 2011
Use java class:
import java.nio.charset.Charset
encoding = Charset.defaultCharset()
2 comentarios
Matthew Simoneau
el 8 de Sept. de 2011
Grzegorz Knor
el 8 de Sept. de 2011
"MATLAB, unless you specify a particular encoding will use the computer's (user's) default encoding."
<http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/>
Grzegorz Knor
el 8 de Sept. de 2011
get_param(0, 'CharacterEncoding')
1 comentario
Matthew Simoneau
el 8 de Sept. de 2011
Jan
el 8 de Sept. de 2011
Matlab 2009a, WindowsXP:
get(0, 'Language')
% >> 'en_us.windows-1252'
1 comentario
Matthew Simoneau
el 8 de Sept. de 2011
Categorías
Más información sobre Data Type Identification en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!