是否可以在 solidity 中包含多行文本字段?

is it possible to include multi-line text field in solidity?

我已经能够编写 solidity 代码,并且有一个用于用户输入的单行文本字段。是否可以在 solidity 中包含多行文本字段?我希望用户输入一段信息。也许不仅仅是一个段落。

You can store UTF-8 encoded data in string variables, so you should be able to include multiline text as well, as that's just like any other text but with line breaks in it:

Note

All identifiers (contract names, function names and variable names) are restricted to the ASCII character set. It is possible to store UTF-8 encoded data in string variables.