{"id":16227710,"url":"https://github.com/el3um4s/decode-mdb-strange-chars","last_synced_at":"2026-04-17T03:02:38.983Z","repository":{"id":46381043,"uuid":"514907221","full_name":"el3um4s/decode-mdb-strange-chars","owner":"el3um4s","description":"A workaround to solve the character decoding problem of .mdb files (MS Access)","archived":false,"fork":false,"pushed_at":"2023-01-09T01:59:20.000Z","size":365,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T03:17:45.885Z","etag":null,"topics":["decoder","mdb","ms-access","msaccess","npm","strange-chars","utf-8","utf-8-conversion-tool","utf8","utf8-characters","utf8-string","windows"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/el3um4s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["el3um4s"],"patreon":"el3um4s","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/el3um4s"]}},"created_at":"2022-07-17T17:14:08.000Z","updated_at":"2022-07-18T21:15:18.000Z","dependencies_parsed_at":"2023-02-08T08:15:49.940Z","dependency_job_id":null,"html_url":"https://github.com/el3um4s/decode-mdb-strange-chars","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"el3um4s/typescript-npm-package-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/el3um4s%2Fdecode-mdb-strange-chars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/el3um4s%2Fdecode-mdb-strange-chars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/el3um4s%2Fdecode-mdb-strange-chars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/el3um4s%2Fdecode-mdb-strange-chars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/el3um4s","download_url":"https://codeload.github.com/el3um4s/decode-mdb-strange-chars/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247778820,"owners_count":20994537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decoder","mdb","ms-access","msaccess","npm","strange-chars","utf-8","utf-8-conversion-tool","utf8","utf8-characters","utf8-string","windows"],"created_at":"2024-10-10T12:53:37.508Z","updated_at":"2026-04-17T03:02:33.950Z","avatar_url":"https://github.com/el3um4s.png","language":"TypeScript","funding_links":["https://github.com/sponsors/el3um4s","https://patreon.com/el3um4s","https://www.paypal.me/el3um4s"],"categories":[],"sub_categories":[],"readme":"# Decode MDB Strange Chars\n\nA workaround to solve the character decoding problem of .mdb files (MS Access)\n\nNPM link: [@el3um4s/decode-mdb-strange-chars](https://www.npmjs.com/package/@el3um4s/decode-mdb-strange-chars)\n\n### Install and use the package\n\nTo use the package in a project:\n\n```bash\nnpm i @el3um4s/decode-mdb-strange-chars\n```\n\nand then in a file:\n\n```ts\nimport {\n  decodeString,\n  decodeVBSBuffer,\n} from \"@el3um4s/decode-mdb-strange-chars\";\n\nimport { vbs } from \"./sql\";\n\nconst file = path.resolve(\"./src/__tests__/test.mdb\");\n\nconst sqlString = `SELECT * FROM [test] WHERE [ordine]=${ordine};`;\n\nconst result = await runVbsBuffer({\n  vbs,\n  args: [file, `\"${sqlString}\"`, type],\n});\n\nconst decoded = decodeVBSBuffer(result);\nconsole.log(decoded);\n// {\"result\":[{\"ordine\": \"157\",\"carattere\": \"à\",\"utf-8 bytes\": \"c3 a0\",\"descrizione\": \"LATIN SMALL LETTER A WITH GRAVE\",\"codice win\": \"85\"}]}\n\nconst codeAccess = \"85\";\nconst decodedChar = decodeString(codeAccess);\nconsole.log(decodedChar);\n// à\n```\n\n### API\n\n- `decodeString(text: string): string` decode a string of hex code to a string of characters\n- `decodeVBSBuffer(buffer: string[]): string` decode a buffer of hex code to a string of characters\n\n### Acknowledgments\n\nMy problem is reading mdb files even when there are strange characters. This package is meant for [node-mdb](https://github.com/el3um4s/node-mdb). It serves as an intermediate step to convert the characters obtained from [run-vbs](https://github.com/el3um4s/run-vbs). I keep it as a separate package so that I can use it in other projects as well. And, above all, to be able to test it independently and, at the same time, keep the _node-mdb_ code clean.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fel3um4s%2Fdecode-mdb-strange-chars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fel3um4s%2Fdecode-mdb-strange-chars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fel3um4s%2Fdecode-mdb-strange-chars/lists"}