You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -354,11 +354,11 @@ The following dependencies are used to build and run the image. Please feel feel
354
354
355
355
3. Build and run the app using Docker.
356
356
- Build<br>
357
-
`docker compose -f docker-compose.dev.yml build`
357
+
`docker compose build`
358
358
- Run<br>
359
-
`docker compose -f docker-compose.dev.yml up`
359
+
`docker compose up`
360
360
- Stop<br>
361
-
`docker compose -f docker-compose.dev.yml down`
361
+
`docker compose down`
362
362
363
363
4. Edit and execute scripts within the running docker container from **step #3**.
364
364
- For running NPM scripts (see the [Available Scripts](#available-scripts) section for more information):<br>
@@ -530,6 +530,10 @@ Run tests defined in the `/app/__tests__` directory.
530
530
- Downloads and parses a remote excel file.
531
531
- Demonstrates sample usage with `await`
532
532
533
+
### `npm run debug`
534
+
535
+
- Runs the `npm run list:region` with `--inspect` mode for debugging in containers.
536
+
533
537
</details>
534
538
535
539
<br>
@@ -920,6 +924,32 @@ This section describes several common errors and related fixes.
920
924
921
925
</details>
922
926
927
+
<details>
928
+
<summarystyle="font-size: 18px;">
929
+
<b>Malformed text characters in the municipality names</b>
930
+
</summary>
931
+
932
+
#### Information
933
+
934
+
- Sometimes, garbled or malformed text like `"├â┬▒"`, `"ñ"`, and others are present in the PAGASA 10-Day Weather forecast Excel files.
935
+
- This usually occurs when there is a character encoding mismatch when writing data in `UTF-8` format in Excel files, but the ph-municipalities scripts (or Microsoft Excel, Notepad or other programs) interpret it as `ANSI` (Windows-1252) or some other encoding.
936
+
937
+
#### Fix
938
+
939
+
Convert the malformed text to its original text counterparts.
940
+
941
+
1. Add the malformed characters and their expected character conversions in the `SPECIAL_CHARACTERS` env variable as pipe-delimited key-value pairs.
942
+
2. For example, the `"├â┬▒"` and `"ñ"` actually translate to the `"ñ"` character. Write them in the `SPECIAL_CHARACTERS` variable as:<br>
943
+
```
944
+
SPECIAL_CHARACTERS=├â┬▒:ñ,ñ:ñ
945
+
```
946
+
3. Add a blank space after the `":"` character if the malformed text does not have any conversion.<br>
0 commit comments