character count is different in paragraph field when compared to word document

Certified Associate Developer

Using the below code to trim the character count and limit the characters below 65000 in a paragraph as the character count in the interface is different from the character count when we paste the same in the word document.please suggest changes and attached the screenshot of interface count and character count

if(
local!isEdit,
a!paragraphField(
value: fv!item.body,
saveInto: fv!item.body,
characterLimit: 65000,
showCharacterCount: true,

height: "TALL",
validations: if(
len(fn!trim(
fn!substitute(
fv!item.body,
char(10)," ")
)
) > 65000,
"The communication you are trying to send exceeds the character limit allowed. Please send a modified version of the letter to not exceed [65000]",
null )

  Discussion posts and replies are publicly visible

Parents Reply Children