Reputation: 301
I want to store my value in cloud firestore something like this:
// ¤ \\ \\ ¤ // \\// (___) (___) (___) \_____/\__/ \__/ \_____/ \ _ [ . * ԀѧνıԀ * ] _ / \_ * ňν× * _/ . \ __°__ /. |\_°_/| [|\_/|] [|[¤]|] [|;¤;|] [;;¤;;] ;;;;¤]|]\ ;;;;;¤]|]-\ ;;;;;[¤]|]--\ ;;;;;|[¤]|]---\ ;;;;;[|[¤]|]|---| ;;;;;[|[¤]|]|---| ;;;;[|[¤]|/---/ ;;;[|[¤]/---/ ;;[|[¤/---/ ;[|[/---/ [|/---/ /---/ /---/|] /---/]|]; /---/¤]|] |---|[¤]|];;; |---|[¤]|];;;; \--|[¤]|];;;; \-|[¤]|];;;; \|[¤]|];;; \\¤// \|/
I am creating a Stylish Facebook Bio app.. but bio is mixed up when I store it in cloud firestore ): .. some correct example I also try Firebase Real-Time Database and Airtable but the same problem so where I store my bio?
example app same like me
Upvotes: 1
Views: 173
Reputation: 387
Maybe you should convert your text into the base64 encoded form and store encoded text into cloud firestore.
Before showing text into your app please decode your encoded text.
import 'dart:convert';
main() {
var str = "Hello world";
var bytes = utf8.encode(str);
var base64encodeString = base64.encode(bytes);
var base64decodeString = base64.decode('Decoed Encoded Value');
print(base64encodeString);
print(base64decodeString);
}
Upvotes: 1