DCS(Detect Character Sets)
  Version 2.20(Core 2.20) 2022
Help


99
File permissions

   For details on how to access the file, such as how to respond to the following dialogs, please refer to "Access Permission to File" at the end.

       

00
Introduction

   Table of contents is at the end of the page.

* This help has been created in the summer color version. There is a difference in color in other seasons, but there is no change in operability.

   While operating DCS like a general file manager, you can check the Japanese code type, convert each file, and convert selected files at once.

   DCS supports the following Japanese codes. In addition, UTF-based codes also support surrogate pairs and UTF8-MAC.

   
No.Code TypeEncode
1JIS_CP50221CP50221
2JIS_ISO2022JP_2004ISO-2022-JP-2004
3SJISCP932
4EUCEUC-JP
5EUC_CP20932CP20932
6EUC_CP51932CP51932
7EUC_MSeucJP-ms
8UTF16BEUTF-16BE
9UTF16BE_BOMUTF-16BE with BOM
10UTF16LEUTF-16LE
11UTF16LE_BOMUTF-16LE with BOM
12UTF8UTF-8
13UTF8_BOMUTF-8 with BOM

   Code conversion overwrites the same file. Be sure to make a backup before converting.

   The dcs_build_src that appears in the explanation hereafter is the executable file building environment included in the PC version of DCS. A binary executable is also included in this edition. There are also versions for Termux and UserLAnd on Android, so if you are interested, please search the net with "vector dcs".

01
Initial Screen

   Below is the initial screen of DCS. The top of the internal storage and SD card is displayed. The basic operation is the same as a general file manager. The overflow menu has the following four items.
   If you are elsewhere, tapping the DCS icon will take you to this initial screen, the first directory.


       

02
Heading and details

   The list header has a "Select all" check box for items, a "Selected number" counter, pinning to prevent closing by swiping the right edge of the screen, moving the bottom/top when the list does not fit in the screen There is an arrow of . If the file name is long and the right edge is cut off, you can see it by swiping to the left, but you can pin => it to prevent the screen from closing by accidentally swiping the right edge. This pinning function is also available in the "Conversion confirmation screen" described later.

* As of 27 November 2022, even if you close the app by swiping without pinning, you can return to the previous state. Therefore, the pinning function is unnecessary, but it is left in consideration of future potential.

   The directory icon, selection check box, file name on the top, date and time of update on the bottom, and number of valid files (26) directly under the directory are displayed in the details. The selection check boxes are for extracting files for transcoding.
    

   If the item is a file, the difference from the directory is the icon at the top and the file size (834 bytes) and code type (UTF8) after the update date and time at the bottom.
    

   There are 16 kinds of sentences in the icon of the file, but they are different from the actual contents. If you want to peek at the contents, single-tap anything other than the check box as described later in "Peeping and Single Conversion".

Including others, there are 5 types of icons in the details.

03
Termination of DCS

   When the selection screen is pinned, DCS cannot be exited by swiping the right edge. Select "Quit" from the overflow menu.

    

04
SD card not installed

   If the SD card is not installed, the directory icon will be disabled and the selection check box will be hidden as shown below, but this will not affect the operability of the internal storage.

    

05
Pinning

   Pin it so that closing by swiping the right edge of the screen does not occur.

    

06
Waiting dialog

   If it takes a long time to open the directory because there are many files under it, the following dialog will be displayed. If you tap "STOP", the process will be interrupted and only the imported files will be displayed.

    

07
Move directory
   They will appear to the right of the DCS icon as you navigate through the directory hierarchy. Tap any place to move there. If you go down one level or more, a return icon will appear on the far right.

    

08
Peeping and Single Conversion

   A single tap on the file details will give you a sneak peek below. As the blue letter at the top says "Long press to convert to UTF8_BOM", you can convert one file by long pressing without selecting the check box (the initial value for conversion is UTF8_BOM).

   It will close naturally after a while, but you can close it without waiting by swiping to the right or tapping "Close" in the vertical center or right end.

    

    

09
"Settings" change example

   Now change the conversion code type from UTF8_BOM to SJIS. Select Settings from the overflow menu to open the Settings screen.

    

10
"Settings" change example - output type

   "Output type" on the screen "Settings" is the conversion code type. Change the UTF8_BOM selected here to SJIS.

    

11
Change Output Type

    When you tap "Output type" (UTF8_BOM), the codes that can be selected are displayed as follows. SJIS is near the top, so swipe down if you don't see it on the list. Close this list by tapping SJIS displayed as shown.

    

12
Output type change confirmation

    After confirming that "Output type" has been changed to SJIS, close this screen "Settings" with the "OK" button.

    

13
Single code conversion by long press

    If you press and hold the readme.txt earlier, it will be converted from UTF8 to SJIS as follows. The size has changed to 681 bytes. There were 834 bytes in UTF8, but one Japanese code character is 3 bytes in UTF8 and 2 bytes in SJIS, so you can see that it has been reduced to about 2/3, assuming that half-width alphanumeric characters do not change.

   Code conversion overwrites the same file. Be sure to make a backup before converting.

    

21
Select all

   Here, the files displayed by the "Select all" check box are selected. "Number of selections 40" indicates the number of directories and files selected on the screen. The directory conv has significant numbers of 38, not shown here, but they are all files. A total of 77 files to be converted are selected for 39(40-1) and 38 as shown in the "Conversion Confirmation Screen" later.

   The type UTF8 of the file _dcs_inter.h on line 4 of the detail is displayed in bold blue. Swipe left as details are hidden on the right to see this.

    

22
UTF8-MAC

   There is UTF8-MAC to the right of the type UTF8 in _dcs_inter.h on the 4th line of the description, which indicates that UTF-8 code on Mac is included. DCS handles only Japanese in particular, but dakuten and handakuten characters such as ``ga'' and ``pa'' are represented by using two characters as the number of characters ("ga" => "ka" + <dakuten>, "Pa" => "ha" + <handakuten>).

   There is no problem if it is within the same UTF code, but if it is converted to another code such as SJIS, it will result in a miserable conversion of "ga" => "ka" + "?". If there is no advantage in leaving it, change the "Settings" to always convert to the usual dakuten and handakuten characters.

    

23
Setting UTF8-MAC single character conversion

   Open the screen "Settings" from the overflow menu, check the check box "UTF8-MAC 1char", and close the screen "Settings" with the "OK" button.

    

24
Suppression of overwriting the same code

   ll_list.c and ll_list.h at the bottom are ASCII that does not include Japanese, so if "Overwrite same code" in "Settings" is not selected as the initial value, it will not be updated even if it is converted to SJIS. The output types for which ASCII is converted when "Overwrite same code" is not selected are 5 types of UTF-based codes "UTF16BE, UTF16BE_BOM, UTF16LE, UTF16LE_BOM, UTF8_BOM", excluding UTF8 without BOM.

    

25
Batch conversion

    Now that you have everything ready, select Convert from the overflow menu to open the conversion screen.

   Code conversion overwrites the same file. Be sure to make a backup before converting.

    

26
Conversion confirmation screen

   The conversion check list details are ordered by file path, with the file name at the top. You can make selections before conversion using the "Select all" check box and select check box. Any changes made here will not be reflected on the selection screen.

    

27
Pinning and running the conversion confirmation screen

   As with the initial screen and other selection screens, you can swipe the cut off right edge of the conversion confirmation screen to see it, but pin it to prevent the screen from being accidentally closed. Then click the "Convert" button to convert the listed files.

    

28
Confirmation after conversion

   After updating, you will return to the previous selection screen. The updated contents are displayed in SJIS, but you can see that ll_list.c and ll_list.h are still in ASCII and have not been updated.

    

29
Semi-selected directory

   Now tap the DCS icon to return to the top. The directory icon for Internal Storage has a blue outline and a checked selection checkbox. This reflects the fact that "Select all" was checked on the "Select all" selection screen. A directory icon with a blue outline is a semi-selected substitute for the selected check box, indicating that any underlying files or directories are unselected.

    

31
Setting screen


Extraction condition

   From here, we will explain the contents of the "Settings" that determine the conditions for judgment and conversion. First, select the extraction condition with the check box "Include" and button "Text" on the right of "ExtrCond", and the check box below it "Exclude" and button "Binary".

   The default radio button "Incl" is selected, tap the button to the right of it "TEXT" to change their text type. If you press and hold the radio button "Incl" or the button "TEXT" here, the file types that have been set are displayed below. If you press and hold the radio button "Excl" at the bottom or the enabled button "BINARY", the file types not covered will be displayed.


    

32
Edit extraction conditions

   When you tap the "TEXT" button to the right of "Settings", "Extraction conditions", and "Contain", the text type edit screen for selection opens as shown below.

   Text type can be without '.' such as '.txt'. Blanks and newlines are replaced with single blanks when updating. Sorting is also done, so it will be the same position no matter where you add it.

   Similarly, edit excluded file types with the button "BINARY", which is enabled by selecting "Excl" in the same "ExtrCond".

   After editing is completed, click "OK" to update and return to the previous screen.


    

33
Selecting untyped files

"No type" on the right side of the screen "Settings" "ExtrCond" converts files without file types (.txt, .html, etc.) regardless of the selection of "Incl" or "Excl".

    

34
Change input type

"Input type" is automatically determined, so the default value "Unknown" is usually fine, but it may not be possible to determine when the number of characters is small. are displayed multiple times. In that case, set the input type in the same way as the "Output type". However, UTF code with BOM can be automatically determined, so it is not included in the "Input type" options. If the code type shows "Unknown" then the file is not text or is corrupted and will not be converted no matter what you set the input type to.

   For "Output type", please refer to "Change Output Type" in "Single conversion".

    

35
Initialize settings

   Tap "RESET" in "Settings" to display the following dialog. If you select "OK" here, the settings will be directly updated to the initial values. If you tap "RESET" by mistake, click "CANCEL" to close this dialog.

    

36
Line feed judgment

   If you check "LF Judge", any of the corresponding line feed code LF, CR, CR/LF will be displayed on the right side of the detailed input type of the file (here LF).

    

    

37
Line feed edit
   By checking "LF Edit" and selecting one of the line feed code LF, CR, CR/LF, the line feed code at the time of update will be unified to the selected one.


    

38
UTF8-MAC single character conversion

   As shown in "UTF8-MAC", "UTF8-MAC 1char" is unnecessary in most cases, so it is a good idea to check it.

    

39
Overwrite Suppression

   The initial state of "overwrite" is not selected to avoid inadvertent conversion. The "Same CD" does not update with the same content. The "Similar CD" to the right of it does not lose characters during conversion. If you want to update for some reason (such as only editing line breaks), please check it.

   There are two types of similar codes, JIS and EUC, which are displayed as shown in the figure below by pressing and holding the check box "Similar code".

    

41
File permissions

   The following dialog is displayed when DCS is first started. DCS only deals with text files, but the system does not distinguish between text and other formats such as images and videos. Be sure to select "ALLOW" here.

    

   However, if you select "DON'T ALLOW" twice, this dialog will not appear again. Either uninstall DCS and install it again, or go to "Settings" on the system and proceed as follows to allow access to the system.

42
Permissions from System "Settings"

   Select "Apps & notifications" from "Settings" of the system and tap the DCS icon displayed as follows.

    

43
Permissions from system "Settings" - App info

   Since "App info" of DCS is displayed, tap "Permissions".

    

44
Permissions from System "Settings" - App Permissio...

   Since "App Permissio..." of DCS is displayed, tap "Files and media".

    

45
Permissions from System "Settings" - Files and Media

   DCS "Files and media permiss..." is displayed, select "Allow management of all files".

   Finally, tap the Back button on the upper left of the screen to exit.

    


Contents
   Basic operation
   Batch conversion
   "Settings" screen
   File permissions