- Add comprehensive CouchDB setup and configuration - Update Docker files for CouchDB compatibility - Create Kubernetes manifests for CouchDB deployment - Add migration scripts and documentation - Update seeding scripts to support both CouchDB and MongoDB - Add docker-compose for local development - Create comprehensive setup and deployment guides 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
"use strict";
|
|
const utf8Encoder = new TextEncoder();
|
|
const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
|
|
function utf8Encode(string) {
|
|
return utf8Encoder.encode(string);
|
|
}
|
|
|
|
function utf8DecodeWithoutBOM(bytes) {
|
|
return utf8Decoder.decode(bytes);
|
|
}
|
|
|
|
module.exports = {
|
|
utf8Encode,
|
|
utf8DecodeWithoutBOM
|
|
};
|