Home > utils > convertunicode.m

convertunicode

PURPOSE ^

Hack conversions of unicode characters

SYNOPSIS ^

function outstr = convertunicode(instr)

DESCRIPTION ^

 Hack conversions of unicode characters

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function outstr = convertunicode(instr)
0002 % Hack conversions of unicode characters
0003 
0004 % 27Jun2014 Petr Janata
0005 outstr = instr;
0006 done = 0;
0007 
0008 while ~done
0009   if any(unicode2native(outstr)==239)
0010     outstr(unicode2native(outstr)==239) = 101;
0011   else
0012     done = 1;
0013   end
0014 end
0015 
0016 return

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003