Error - DataValidation and unicode symbols

Issue #366 resolved
Alexey Evseev
created an issue

I tried to create a data-validation object with list validation with russian symbols:

dv = DataValidation(ValidationType.LIST, formula1=u'"Кот,Мышь"', allow_blank=True)

Exception was raised in datavalidation.py at line 85.

Insted of

        if formula1 is not None:
            self.formula1 = str(formula1)
        if formula2 is not None:
            self.formula2 = str(formula2)

should be something like

        if formula1 is not None:
            self.formula1 = unicode(formula1)
        if formula2 is not None:
            self.formula2 = unicode(formula2)

Comments (3)

  1. Log in to comment