AnsweredAssumed Answered

EMOJIS corrupt custom functions

Question asked by JoshuaPaul on Jul 19, 2018
Latest reply on Jul 23, 2018 by TSGal

Screen Shot 2018-07-19 at 10.26.34 PM.png

Screen Shot 2018-07-19 at 10.27.06 PM.png

Product and version:  FM17.01.143

OS and version: 10.13.6

Hardware: late 2013 rMBP i7 16 1tb

Description: custom functions are corrupted / truncated when using emojis

How to replicate:

 

create this custom function:

//josh mod 2018-07-19 6:38 PM

//https://www.briandunning.com/cf/1086

// since there is no zero-equivalent in the alphbet, this function plays a few tricks with the starting positions

// to make zero-based, base ten input (0-9) conform to one-based, base twenty-six output.

// it is otherwise the same as DecToHex found at http://www.briandunning.com/cf/216

// _alpha = "zabcdefghijklmnopqrstuvwxy" ;

//https://gist.github.com/itsthatguy/7451d04dc0f3aedd9684

Let ( [

_alpha = "⌚ ⌛ ⏩ ⏪ ⏫ ⏬ ⏰ ⏳ ▪ ▫ ▶◀ ◻ ◼ ◽ ◾ ☀ ☁ ☎ ☑ ☔ ☕ ☝ ☺ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓♠ ♣ ♥ ♦ ♨ ♻ ♿ ⚓ ⚠ ⚡ ⚪ ⚫ ⚽ ⚾ ⛄ ⛅ ⛎ ⛔ ⛪ ⛲ ⛳ ⛵ ⛺ ⛽ ⤴⤵ ⬅ ⬆ ⬇ ⬛ ⬜ ⭐ ⭕ 〰 〽 ㊗ ㊙                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ";

_base = length ( _alpha ) ;

_bit = Mod ( integer ; _base ) + 1 ;

_char = Middle ( _alpha ; _bit ; 1 ) ;

_next = Div ( integer - 1 ; _base )

] ;

 

Case (

_next ;

NumToAlpha ( _next )

)//end Case

& _char

)//end Let

 

 

save the custom function

 

now open custom function - you will get this - notice the garbage at the end

 

//josh mod 2018-07-19 6:38 PM

//https://www.briandunning.com/cf/1086

// since there is no zero-equivalent in the alphbet, this function plays a few tricks with the starting positions

// to make zero-based, base ten input (0-9) conform to one-based, base twenty-six output.

// it is otherwise the same as DecToHex found at http://www.briandunning.com/cf/216

// _alpha = "zabcdefghijklmnopqrstuvwxy" ;

//https://gist.github.com/itsthatguy/7451d04dc0f3aedd9684

 

Let ( [

_alpha = "⌚ ⌛ ⏩ ⏪ ⏫ ⏬ ⏰ ⏳ ▪ ▫ ▶◀ ◻ ◼ ◽ ◾ ☀ ☁ ☎ ☑ ☔ ☕ ☝ ☺ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓♠ ♣ ♥ ♦ ♨ ♻ ♿ ⚓ ⚠ ⚡ ⚪ ⚫ ⚽ ⚾ ⛄ ⛅ ⛎ ⛔ ⛪ ⛲ ⛳ ⛵ ⛺ ⛽ ⤴⤵ ⬅ ⬆ ⬇ ⬛ ⬜ ⭐ ⭕ 〰 〽 ㊗ ㊙                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ZYVI[¶ZQ__ba"

 

 

Workaround:

 

NONE

Outcomes