`
pre-logic:
def myCalc(name,nameVal):
if (name == nameVal):
return 1
else:
return 0
var_name=
myCalc(!Epulettipus!,"Lakóépület")
`
This doesn't work with accentuated strings. (But works with unaccentuated strings). What can I do?
`
pre-logic:
def myCalc(name,nameVal):
if (name == nameVal):
return 1
else:
return 0
var_name=
myCalc(!Epulettipus!,"Lakóépület")
`
This doesn't work with accentuated strings. (But works with unaccentuated strings). What can I do?
Put a u in front of the string so the interpreter knows it's Unicode.
myCalc(!Epulettipus!, u"Lakóépület")